class
FDateTime
- Module
- Core
- Header
#include "Core/FDateTime.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
constexpr bool operator<(FDateTime o) const | noexcept |
Constructors
| Signature | Name | Description |
|---|---|---|
constexpr FDateTime() = default | FDateTime | |
constexpr explicit FDateTime(int64_t microsecondsSinceEpoch) : m_us(microseconds… | FDateTime |
Public functions
| Returns | Name | Description |
|---|---|---|
FDateTime | Now | LOCAL time — subject to DST + timezone. |
FDateTime | UtcNow | UTC. |
int | GetYear | |
int | GetMonth | 1-12 |
int | GetDay | 1-31 |
int | GetHour | 0-23 |
int | GetMinute | 0-59 |
int | GetSecond | 0-59 |
int | GetMillisecond | 0-999 |
std::string | ToIso8601 | "YYYY-MM-DDTHH:MM:SS", read as UTC — the caller is responsible for having stamped the value with UtcNow rather than Now. |
std::string | ToString | Localised display, system-default format. |
FTimespan | operator- | |
FDateTime | operator+ | |
bool | operator== | |
bool | operator!= | |
bool | operator> | |
bool | operator>= |
Function details
FDateTime
C++
constexpr FDateTime() = defaultFDateTime
C++
constexpr explicit FDateTime(int64_t microsecondsSinceEpoch) : m_us(microsecondsSinceEpoch)Now
C++
static FDateTime Now()LOCAL time — subject to DST + timezone.
UtcNow
C++
static FDateTime UtcNow()UTC. Prefer for serialised timestamps.
GetYear
C++
int GetYear() constGetMonth
C++
int GetMonth() const1-12
GetDay
C++
int GetDay() const1-31
GetHour
C++
int GetHour() const0-23
GetMinute
C++
int GetMinute() const0-59
GetSecond
C++
int GetSecond() const0-59
GetMillisecond
C++
int GetMillisecond() const0-999
ToIso8601
C++
std::string ToIso8601() const"YYYY-MM-DDTHH:MM:SS", read as UTC — the caller is responsible for having stamped the value with UtcNow rather than Now.
ToString
C++
std::string ToString() constLocalised display, system-default format.
operator-
C++
constexpr FTimespan operator-(FDateTime o) const noexceptoperator+
C++
constexpr FDateTime operator+(FTimespan t) const noexceptoperator==
C++
constexpr bool operator==(FDateTime o) const noexceptoperator!=
C++
constexpr bool operator!=(FDateTime o) const noexceptoperator>
C++
constexpr bool operator>(FDateTime o) const noexceptoperator>=
C++
constexpr bool operator>=(FDateTime o) const noexceptGenerated from Core/FDateTime.h via core.json · Nov 5, 2026Version 1.0.0