Navigation
Unreal Engine C++ API Reference > Runtime > Core > Misc > FTimespan
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Misc/Timespan.h |
Include | #include "Misc/Timespan.h" |
Source | /Engine/Source/Runtime/Core/Private/Misc/Timespan.cpp |
static bool Parse
(
const FString & TimespanString,
FTimespan & OutTimespan
)
Remarks
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. true if the string was converted successfully, false otherwise.
Parameters
Name | Description |
---|---|
TimespanString | The string to convert. |
OutTimespan | Will contain the parsed time span. |