|
ORIGINAL
|
Namespace-like class containing time-related utilities. More...
#include <zeit.h>

Classes | |
| class | duration |
| Represents a time duration with nanosecond precision. More... | |
| class | point |
| Represents a point in time with nanosecond precision. More... | |
| class | UTCTime |
| Represents a UTC calendar date and time. More... | |
Public Types | |
| enum class | unit { NANOSECOND , MICROSECOND , MILLISECOND , SECOND , MINUTE , HOUR , DAY } |
| Time units supported by the library. More... | |
| using | time_val_type = integer |
| Type used for storing time values. | |
Static Public Attributes | |
| static constexpr auto | NANOSECOND = unit::NANOSECOND |
| Constant for nanosecond unit. | |
| static constexpr auto | MICROSECOND = unit::MICROSECOND |
| Constant for microsecond unit. | |
| static constexpr auto | MILLISECOND = unit::MILLISECOND |
| Constant for millisecond unit. | |
| static constexpr auto | SECOND = unit::SECOND |
| Constant for second unit. | |
| static constexpr auto | MINUTE = unit::MINUTE |
| Constant for minute unit. | |
| static constexpr auto | HOUR = unit::HOUR |
| Constant for hour unit. | |
| static constexpr auto | DAY = unit::DAY |
| Constant for day unit. | |
| static constexpr time_val_type | FACTOR_NANOSECOND = UNIT_FACTOR[static_cast<ul_integer>(NANOSECOND)] |
| Conversion factor for nanoseconds. | |
| static constexpr time_val_type | FACTOR_MICROSECOND = UNIT_FACTOR[static_cast<ul_integer>(MICROSECOND)] |
| Conversion factor for microseconds. | |
| static constexpr time_val_type | FACTOR_MILLISECOND = UNIT_FACTOR[static_cast<ul_integer>(MILLISECOND)] |
| Conversion factor for milliseconds. | |
| static constexpr time_val_type | FACTOR_SECOND = UNIT_FACTOR[static_cast<ul_integer>(SECOND)] |
| Conversion factor for seconds. | |
| static constexpr time_val_type | FACTOR_MINUTE = UNIT_FACTOR[static_cast<ul_integer>(MINUTE)] |
| Conversion factor for minutes. | |
| static constexpr time_val_type | FACTOR_HOUR = UNIT_FACTOR[static_cast<ul_integer>(HOUR)] |
| Conversion factor for hours. | |
| static constexpr time_val_type | FACTOR_DAY = UNIT_FACTOR[static_cast<ul_integer>(DAY)] |
| Conversion factor for days. | |
| static constexpr integer | DAYS_LEAP_YEAR = 366 |
| Days in a leap year. | |
| static constexpr integer | DAYS_COMMON_YEAR = 365 |
| Days in a common year. | |
| static constexpr integer | EPOCH_YEAR = 1970 |
| Epoch year (Unix epoch) | |
| static constexpr integer | EPOCH_MONTH = 1 |
| Epoch month (Unix epoch) | |
| static constexpr integer | EPOCH_DAY = 1 |
| Epoch day (Unix epoch) | |
| static constexpr auto | MONTH = UTCTime::calendar::MONTH |
| Constant for month calendar component. | |
| static constexpr auto | YEAR = UTCTime::calendar::YEAR |
| Constant for year calendar component. | |
Namespace-like class containing time-related utilities.
Contains duration, point, and UTCTime classes along with unit definitions and conversion factors.
|
strong |