FGenericPlatformTime::PrettyTime

Returns a pretty-string for a time given in seconds. (I.e. "4:31 min", "2:16:30 hours", etc)

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformTime.h

Include

#include "GenericPlatform/GenericPlatformTime.h"

Source

/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformTime.cpp

Syntax

static FString PrettyTime
(
    double Seconds
)

Remarks

Returns a pretty-string for a time given in seconds. (I.e. "4:31 min", "2:16:30 hours", etc)

Returns

Time in a pretty formatted string

Parameters

Parameter

Description

Seconds

Time in seconds

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