Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FTimespan
Description
Convert a string to a time span.
The string must be in one of the following formats: p[d.]hh::mm::ss.fff p[d.]hh::mm::ss.uuuuuu p[d.]hh::mm::ss.nnnnnnnnn
Note that 'p' is the plus or minus sign, and the date component may be omitted for time spans that are shorter than one day.
| Name | Parse |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Timespan.h |
| Include Path | #include "Misc/Timespan.h" |
| Source | /Engine/Source/Runtime/Core/Private/Misc/Timespan.cpp |
static bool Parse
(
const FString & TimespanString,
FTimespan & OutTimespan
)
true if the string was converted successfully, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| TimespanString | The string to convert. |
| OutTimespan | Will contain the parsed time span. |
See Also
- ToString