|
static time_point | now () noexcept |
| Gets current timestamp.
|
|
static __time64_t | to_time_t (const time_point tp) noexcept |
| Returns time_t from time point.
|
|
static time_point | from_time_t (__time64_t t) noexcept |
| Returns time point from time_t.
|
|
static time_point | from_system (const struct timespec &t) noexcept |
| Returns time point from struct timespec.
|
|
static void | to_system (time_point tp, struct tm &date) noexcept |
|
static aosn_date::time_point | to_date (time_point tp) noexcept |
| Returns aosn_date::time_point from time point.
|
|
static time_point | from_date (aosn_date::time_point date) noexcept |
| Returns time point from aosn_date::time_point.
|
|
static time_point | from_dmy (uint8_t day, uint8_t month, int32_t year, uint8_t hour, uint8_t minute, uint8_t second, uint16_t millisecond) noexcept |
| Returns time point from calendar day, month, year and time.
|
|
static void | to_dmy (const time_point tp, uint8_t *day, uint8_t *month, int32_t *year, uint8_t *hour, uint8_t *minute, uint8_t *second, uint16_t *millisecond) noexcept |
| Returns calendar day, month, year and time from time point.
|
|
template<class _Traits = std::char_traits<char>, class _Ax = std::allocator<char>> |
static std::basic_string< char, _Traits, _Ax > | to_str (const time_point tp, const char *format, locale_t locale) |
|
template<class _Traits = std::char_traits<wchar_t>, class _Ax = std::allocator<wchar_t>> |
static std::basic_string< wchar_t, _Traits, _Ax > | to_str (const time_point tp, const wchar_t *format, locale_t locale) |
|
template<class _Traits = std::char_traits<char>, class _Ax = std::allocator<char>> |
static std::basic_string< char, _Traits, _Ax > | to_rfc822 (const time_point tp) |
|