FText::AsTime

A dynamically sizeable string.

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Internationalization/Text.h

Include

#include "Internationalization/Text.h"

Source

/Engine/Source/Runtime/Core/Private/Internationalization/Text.cpp

Syntax

static FText AsTime
(
    const FDateTime & DateTime,
    const EDateTimeStyle::Type TimeStyle,
    const FString & TimeZone,
    const FCulturePtr & TargetCulture
)

Remarks

A dynamically sizeable string. When dealing with UTF-8 literals, the following advice is recommended:

  • Do not use the u8"..." prefix (gives the wrong array type until C++20).

  • Use UTF8TEXT("...") for array literals (type is const UTF8CHAR[n]).

  • Use UTF8TEXTVIEW("...") for string view literals (type is FUtf8StringView).

  • Use or escape sequences rather than to specify Unicode code points.

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
Cancel