AOsn timestamp.
More...
#include <stdex/chrono.hpp>
|
using | rep = int64_t |
|
using | period = std::ratio< 1, 1 '000 '000 > |
|
using | duration = std::chrono::duration< rep, period > |
|
using | time_point = std::chrono::time_point< aosn_timestamp > |
|
|
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 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.
|
|
|
static constexpr bool | is_steady = false |
|
static constexpr rep | f_second = 1000 |
|
static constexpr rep | f_minute = 60 |
|
static constexpr rep | f_hour = 60 |
|
static constexpr rep | f_day = 24 |
|
static constexpr rep | f_week = 7 |
|
static constexpr rep | p_second = f_second |
|
static constexpr rep | p_minute = f_minute * p_second |
|
static constexpr rep | p_hour = f_hour * p_minute |
|
static constexpr rep | p_day = f_day * p_hour |
|
static constexpr rep | p_week = f_week * p_day |
|
The documentation for this struct was generated from the following file: