FTimespan::ToString

Convert this time span to its string representation.

Windows
MacOS
Linux

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

Syntax

FString ToString
(
    const TCHAR * Format
) const

Remarks

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.

Returns

String representation.

Parameters

Parameter

Description

Format

The format of the returned string.

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss