FTimespan::Parse

Convert a string to a time span.

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

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

that 'p' is the plus or minus sign, and the date component may be omitted for time spans that are shorter than one day.

Returns

true if the string was converted successfully, false otherwise.

Parameters

Parameter

Description

TimespanString

The string to convert.

OutTimespan

Will contain the parsed time span.

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