Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FTimespan
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Return the string representation of this time span using a default format. | Misc/Timespan.h | ||
| Convert this time span to its string representation. | Misc/Timespan.h |
ToString()
Description
Return the string representation of this time span using a default format.
The returned string has the following format: p[d.]hh:mm:ss.fff
Note that 'p' is the plus or minus sign, and the date component is omitted for time spans that are shorter than one day.
Examples: -42.15:11:36.457 (45 days, 15 hours, 11 minutes, 36.457 seconds in the past) +42.15:11:36.457 (45 days, 15 hours, 11 minutes, 36.457 seconds in the future) +15:11:36.457 (15 hours, 11 minutes, 36.457 seconds in the future) +00:11:36.457 (11 minutes, 36.457 seconds in the future) +00:00:36.457 (36.457 seconds in the future)
| Name | ToString |
| 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 |
FString ToString() const
String representation.
See Also
ToString(const TCHAR *)
Description
Convert this time span to its string representation.
The following formatting codes are available: d - prints the days component D - prints the zero-padded days component (00000000..10675199) h - prints the zero-padded hours component (00..23) m - prints the zero-padded minutes component (00..59) s - prints the zero-padded seconds component (00..59) f - prints the zero-padded fractional seconds (000..999) u - prints the zero-padded fractional seconds (000000..999999) n - prints the zero-padded fractional seconds (000000000..999999999)
Depending on whether the time span is positive or negative, a plus or minus sign character will always be added in front of the generated string.
| Name | ToString |
| 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 |
FString ToString
(
const TCHAR * Format
) const
String representation.
Parameters
| Name | Remarks |
|---|---|
| Format | The format of the returned string. |