|
| LocalTime () |
| Initialize local time with a current value. More...
|
|
| LocalTime (const Timestamp ×tamp) |
| Initialize local time with a given timestamp. More...
|
|
template<class Clock , class Duration > |
| LocalTime (const std::chrono::time_point< Clock, Duration > &time_point) |
| Initialize local time with a given std::chrono time point. More...
|
|
| LocalTime (const Time &time) |
| Initialize local time with another time value. More...
|
|
| LocalTime (const UtcTime &time) |
| Initialize local time with another UTC time value. More...
|
|
| Time () noexcept |
| Initialize time with an epoch time. More...
|
|
| Time (int year, int month, int day, int hour=0, int minute=0, int second=0, int millisecond=0, int microsecond=0, int nanosecond=0) |
| Initialize time with a given date & time components (year, month, day, hour, minute, second, etc.) More...
|
|
| Time (const Time &) noexcept=default |
|
| Time (Time &&) noexcept=default |
|
| Time (const Timestamp ×tamp) |
| Protected initialize time with a timestamp. More...
|
|
std::chrono::time_point< std::chrono::system_clock > | chrono () const |
| Convert date & time to the std::chrono time point. More...
|
|
| Time () noexcept |
| Initialize time with an epoch time. More...
|
|
| Time (int year, int month, int day, int hour=0, int minute=0, int second=0, int millisecond=0, int microsecond=0, int nanosecond=0) |
| Initialize time with a given date & time components (year, month, day, hour, minute, second, etc.) More...
|
|
| Time (const Time &) noexcept=default |
|
| Time (Time &&) noexcept=default |
|
| ~Time () noexcept=default |
|
Time & | operator= (const Timestamp ×tamp) |
|
Time & | operator= (const Time &) noexcept=default |
|
Time & | operator= (Time &&) noexcept=default |
|
Time & | operator+= (const Timespan &offset) |
|
Time & | operator-= (const Timespan &offset) |
|
std::chrono::time_point< std::chrono::system_clock > | chrono () const |
| Convert date & time to the std::chrono time point. More...
|
|
int | year () const noexcept |
| Get year value (1970-2038 for 32-bit or 1970-3000 for 64-bit) More...
|
|
int | month () const noexcept |
| Get month value (1-12) More...
|
|
Weekday | weekday () const noexcept |
| Get weekday. More...
|
|
int | day () const noexcept |
| Get day value (1-31) More...
|
|
int | hour () const noexcept |
| Get hour value (0-23) More...
|
|
int | minute () const noexcept |
| Get minute value (0-59) More...
|
|
int | second () const noexcept |
| Get second value (0-59) More...
|
|
int | millisecond () const noexcept |
| Get millisecond value (0-999) More...
|
|
int | microsecond () const noexcept |
| Get microsecond value (0-999) More...
|
|
int | nanosecond () const noexcept |
| Get nanosecond value (0-999) More...
|
|
UtcTimestamp | utcstamp () const |
| Get UTC timestamp from the current date & time value. More...
|
|
LocalTimestamp | localstamp () const |
| Get local timestamp from the current date & time value. More...
|
|
void | swap (Time &time) noexcept |
| Swap two instances. More...
|
|
Local time.
- Examples
- time_time.cpp.
Definition at line 234 of file time.h.