5#ifndef SAPPHIRE_LOGGER_DATE_TIME_GUARD
6#define SAPPHIRE_LOGGER_DATE_TIME_GUARD
Date time structure type.
Definition DateTime.hpp:26
static DateTime FileStats(const std::string &_path)
Query file date time stats at path.
uint8_t hour
hour number [0, 23].
Definition DateTime.hpp:34
uint8_t second
second number [0, 59].
Definition DateTime.hpp:28
uint8_t day
day of the month number [1, 31].
Definition DateTime.hpp:37
uint8_t minute
minute number [0, 59].
Definition DateTime.hpp:31
bool operator!=(const DateTime &_rhs) const noexcept
Compare two DateTime inequality.
uint8_t month
month number [1, 12].
Definition DateTime.hpp:40
DateTime(uint8_t _second, uint8_t _minute=0u, uint8_t _hour=0u, uint8_t _day=0u, uint8_t _month=0u, uint16_t _year=0u, uint8_t _weekday=0u) noexcept
uint16_t year
Year number.
Definition DateTime.hpp:43
DateTime(const struct tm &_time) noexcept
static DateTime GMNow() noexcept
Get the current date time at Greenwich.
static DateTime Now() noexcept
Get the current local date time.
bool Equals(const DateTime &_other) const noexcept
Compare two DateTime equality.
uint8_t weekday
day number of the week [0, 6].
Definition DateTime.hpp:46
DateTime()=default
Default constructor.
bool operator==(const DateTime &_rhs) const noexcept
Compare two DateTime equality.