FDateTime::GetHour12

Gets this date's hour part in 12-hour clock format (1 to 12).

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/DateTime.h

Include

#include "Misc/DateTime.h"

Source

/Engine/Source/Runtime/Core/Private/Misc/DateTime.cpp

Syntax

int32 GetHour12() const

Remarks

Gets this date's hour part in 12-hour clock format (1 to 12).

Returns

The hour in AM/PM format.

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