8#ifndef HPP_ALIB_TIME_DATETIME
9#define HPP_ALIB_TIME_DATETIME 1
13namespace alib {
namespace time {
62 return std::chrono::system_clock::to_time_t(
stamp );
76 return DateTime( std::chrono::system_clock::from_time_t( epochSeconds ) );
233 #if !defined(HPP_ALIB_BOXING_BOXING)
bool operator!=(const DateTime &other) const
ALIB_API ULARGE_INTEGER ToFileTimeLI() const
bool operator<(const DateTime &other) const
static ALIB_API DateTime FromFileTime(const FILETIME &fileTime)
static DateTime FromEpochSeconds(time_t epochSeconds)
time_t InEpochSeconds() const
static ALIB_API DateTime FromFileTime(const ULARGE_INTEGER &fileTime)
static ALIB_API DateTime FromSystemTime(const SYSTEMTIME &systemTime, lang::Timezone timezone=lang::Timezone::Local)
bool operator>(const DateTime &other) const
ALIB_API SYSTEMTIME ToSystemTime(lang::Timezone timezone=lang::Timezone::Local) const
bool operator==(const DateTime &other) const
bool operator<=(const DateTime &other) const
ALIB_API FILETIME ToFileTime() const
bool operator>=(const DateTime &other) const
constexpr TimePointBase(const lang::Initialization init=lang::Initialization::Default)
#define ALIB_BOXING_VTABLE_DECLARE(TMapped, Identifier)
Timezone
Denotes whether a time value represents local time or UTC.
@ Local
Denotes local time.
time::DateTime DateTime
Type alias in namespace alib.