8#ifndef HPP_ALIB_TIME_DATETIME
9#define HPP_ALIB_TIME_DATETIME 1
11#if !defined (HPP_ALIB_TIME_TIMEPOINT)
15namespace alib {
namespace time {
60 return std::chrono::system_clock::to_time_t(
stamp );
74 return DateTime( std::chrono::system_clock::from_time_t( epochSeconds ) );
231 #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(lang::Initialization init=lang::Initialization::Perform)
#define ALIB_BOXING_VTABLE_DECLARE(TMapped, Identifier)
@ Local
Denotes local time.
time::DateTime DateTime
Type alias in namespace alib.