|
Time Shield Library
C++ library for working with time
|
Header file with time-related constants. More...
Go to the source code of this file.
Namespaces | |
| namespace | time_shield |
| Main namespace for the Time Shield library. | |
Variables | |
| constexpr int64_t | time_shield::MS_1 = 1 |
| 1 millisecond | |
| constexpr int64_t | time_shield::MS_5 = 5 |
| 5 milliseconds | |
| constexpr int64_t | time_shield::MS_10 = 10 |
| 10 milliseconds | |
| constexpr int64_t | time_shield::MS_50 = 50 |
| 50 milliseconds | |
| constexpr int64_t | time_shield::MS_100 = 100 |
| 100 milliseconds | |
| constexpr int64_t | time_shield::MS_250 = 250 |
| 250 milliseconds | |
| constexpr int64_t | time_shield::MS_500 = 500 |
| 500 milliseconds | |
| constexpr int64_t | time_shield::MS_750 = 750 |
| 750 milliseconds | |
| constexpr int64_t | time_shield::SEC_1 = 1 |
| 1 second | |
| constexpr int64_t | time_shield::SEC_2 = 2 |
| 2 seconds | |
| constexpr int64_t | time_shield::SEC_3 = 3 |
| 3 seconds | |
| constexpr int64_t | time_shield::SEC_5 = 5 |
| 5 seconds | |
| constexpr int64_t | time_shield::SEC_10 = 10 |
| 10 seconds | |
| constexpr int64_t | time_shield::SEC_15 = 15 |
| 15 seconds | |
| constexpr int64_t | time_shield::SEC_30 = 30 |
| 30 seconds | |
| constexpr int64_t | time_shield::MIN_1 = 1 |
| 1 minute | |
| constexpr int64_t | time_shield::MIN_2 = 2 |
| 2 minutes | |
| constexpr int64_t | time_shield::MIN_5 = 5 |
| 5 minutes | |
| constexpr int64_t | time_shield::MIN_10 = 10 |
| 10 minutes | |
| constexpr int64_t | time_shield::MIN_15 = 15 |
| 15 minutes | |
| constexpr int64_t | time_shield::MIN_30 = 30 |
| 30 minutes | |
| constexpr int64_t | time_shield::HOUR_1 = 1 |
| 1 hour | |
| constexpr int64_t | time_shield::HOUR_2 = 2 |
| 2 hours | |
| constexpr int64_t | time_shield::HOUR_3 = 3 |
| 3 hours | |
| constexpr int64_t | time_shield::HOUR_4 = 4 |
| 4 hours | |
| constexpr int64_t | time_shield::HOUR_5 = 5 |
| 5 hours | |
| constexpr int64_t | time_shield::HOUR_8 = 8 |
| 8 hours | |
| constexpr int64_t | time_shield::HOUR_12 = 12 |
| 12 hours | |
| constexpr int64_t | time_shield::HOUR_24 = 24 |
| 24 hours | |
| constexpr int64_t | time_shield::NS_PER_US = 1000 |
| Nanoseconds per microsecond. | |
| constexpr int64_t | time_shield::NS_PER_MS = 1000000 |
| Nanoseconds per millisecond. | |
| constexpr int64_t | time_shield::NS_PER_SEC = 1000000000 |
| Nanoseconds per second. | |
| constexpr int64_t | time_shield::US_PER_SEC = 1000000 |
| Microseconds per second. | |
| constexpr int64_t | time_shield::MS_PER_SEC = 1000 |
| Milliseconds per second. | |
| constexpr int64_t | time_shield::MS_PER_1_SEC = 1000 |
| Milliseconds per 1 second. | |
| constexpr int64_t | time_shield::MS_PER_5_SEC = 5000 |
| Milliseconds per 5 second. | |
| constexpr int64_t | time_shield::MS_PER_10_SEC = 10000 |
| Milliseconds per 10 seconds. | |
| constexpr int64_t | time_shield::MS_PER_15_SEC = 15000 |
| Milliseconds per 15 second. | |
| constexpr int64_t | time_shield::MS_PER_30_SEC = 30000 |
| Milliseconds per 30 second. | |
| constexpr int64_t | time_shield::MS_PER_MIN = 60000 |
| Milliseconds per minute. | |
| constexpr int64_t | time_shield::MS_PER_1_MIN = 60000 |
| Milliseconds per 1 minute. | |
| constexpr int64_t | time_shield::MS_PER_5_MIN = 300000 |
| Milliseconds per 5 minute. | |
| constexpr int64_t | time_shield::MS_PER_10_MIN = 600000 |
| Milliseconds per 10 minute. | |
| constexpr int64_t | time_shield::MS_PER_15_MIN = 900000 |
| Milliseconds per 15 minute. | |
| constexpr int64_t | time_shield::MS_PER_30_MIN = 1800000 |
| Milliseconds per 30 minute. | |
| constexpr int64_t | time_shield::MS_PER_HALF_HOUR = 1800000 |
| Milliseconds per half hour. | |
| constexpr int64_t | time_shield::MS_PER_HOUR = 3600000 |
| Milliseconds per hour. | |
| constexpr int64_t | time_shield::MS_PER_1_HOUR = 3600000 |
| Milliseconds per 1 hour. | |
| constexpr int64_t | time_shield::MS_PER_2_HOUR = 7200000 |
| Milliseconds per 2 hour. | |
| constexpr int64_t | time_shield::MS_PER_4_HOUR = 14400000 |
| Milliseconds per 4 hour. | |
| constexpr int64_t | time_shield::MS_PER_5_HOUR = 18000000 |
| Milliseconds per 5 hour. | |
| constexpr int64_t | time_shield::MS_PER_8_HOUR = 28800000 |
| Milliseconds per 8 hour. | |
| constexpr int64_t | time_shield::MS_PER_12_HOUR = 43200000 |
| Milliseconds per 12 hour. | |
| constexpr int64_t | time_shield::MS_PER_DAY = 86400000 |
| Milliseconds per day. | |
| constexpr int64_t | time_shield::SEC_PER_MIN = 60 |
| Seconds per minute. | |
| constexpr int64_t | time_shield::SEC_PER_1_MIN = 60 |
| Seconds per 1 minute. | |
| constexpr int64_t | time_shield::SEC_PER_3_MIN = 180 |
| Seconds per 3 minute. | |
| constexpr int64_t | time_shield::SEC_PER_5_MIN = 300 |
| Seconds per 5 minute. | |
| constexpr int64_t | time_shield::SEC_PER_10_MIN = 600 |
| Seconds per 10 minute. | |
| constexpr int64_t | time_shield::SEC_PER_15_MIN = 900 |
| Seconds per 15 minute. | |
| constexpr int64_t | time_shield::SEC_PER_HALF_HOUR = 1800 |
| Seconds per half hour. | |
| constexpr int64_t | time_shield::SEC_PER_HOUR = 3600 |
| Seconds per hour. | |
| constexpr int64_t | time_shield::SEC_PER_1_HOUR = 3600 |
| Seconds per 1 hour. | |
| constexpr int64_t | time_shield::SEC_PER_2_HOUR = 7200 |
| Seconds per 2 hour. | |
| constexpr int64_t | time_shield::SEC_PER_4_HOUR = 14400 |
| Seconds per 4 hour. | |
| constexpr int64_t | time_shield::SEC_PER_5_HOUR = 18000 |
| Seconds per 5 hour. | |
| constexpr int64_t | time_shield::SEC_PER_8_HOUR = 28800 |
| Seconds per 8 hour. | |
| constexpr int64_t | time_shield::SEC_PER_12_HOUR = 43200 |
| Seconds per 12 hour. | |
| constexpr int64_t | time_shield::SEC_PER_DAY = 86400 |
| Seconds per day. | |
| constexpr int64_t | time_shield::SEC_PER_YEAR = 31536000 |
| Seconds per year (365 days) | |
| constexpr int64_t | time_shield::AVG_SEC_PER_YEAR = 31557600 |
| Average seconds per year (365.25 days) | |
| constexpr int64_t | time_shield::SEC_PER_LEAP_YEAR = 31622400 |
| Seconds per leap year (366 days) | |
| constexpr int64_t | time_shield::SEC_PER_4_YEARS = 126230400 |
| Seconds per 4 years. | |
| constexpr int64_t | time_shield::SEC_PER_FIRST_100_YEARS = 3155760000 |
| Seconds per first 100 years. | |
| constexpr int64_t | time_shield::SEC_PER_100_YEARS = 3155673600 |
| Seconds per 100 years. | |
| constexpr int64_t | time_shield::SEC_PER_400_YEARS = 12622780800 |
| Seconds per 400 years. | |
| constexpr int64_t | time_shield::MAX_SEC_PER_DAY = 86399 |
| Maximum seconds per day. | |
| constexpr int64_t | time_shield::MIN_PER_HOUR = 60 |
| Minutes per hour. | |
| constexpr int64_t | time_shield::MIN_PER_DAY = 1440 |
| Minutes per day. | |
| constexpr int64_t | time_shield::MIN_PER_1_DAY = 1440 |
| Minutes per 1 day. | |
| constexpr int64_t | time_shield::MIN_PER_2_DAY = 2*1440 |
| Minutes per 2 day. | |
| constexpr int64_t | time_shield::MIN_PER_5_DAY = 5*1440 |
| Minutes per 5 day. | |
| constexpr int64_t | time_shield::MIN_PER_7_DAY = 7*1440 |
| Minutes per 7 day. | |
| constexpr int64_t | time_shield::MIN_PER_WEEK = 10080 |
| Minutes per week. | |
| constexpr int64_t | time_shield::MIN_PER_10_DAY = 10*1440 |
| Minutes per 10 day. | |
| constexpr int64_t | time_shield::MIN_PER_15_DAY = 15*1440 |
| Minutes per 15 day. | |
| constexpr int64_t | time_shield::MIN_PER_30_DAY = 15*1440 |
| Minutes per 30 day. | |
| constexpr int64_t | time_shield::MIN_PER_MONTH = 40320 |
| Minutes per month (28 days) | |
| constexpr int64_t | time_shield::MAX_MOON_MIN = 42523 |
| Maximum lunar minutes. | |
| constexpr int64_t | time_shield::HOURS_PER_DAY = 24 |
| Hours per day. | |
| constexpr int64_t | time_shield::DAYS_PER_WEEK = 7 |
| Days per week. | |
| constexpr int64_t | time_shield::DAYS_PER_LEAP_YEAR = 366 |
| Days per leap year. | |
| constexpr int64_t | time_shield::DAYS_PER_YEAR = 365 |
| Days per year. | |
| constexpr int64_t | time_shield::DAYS_PER_4_YEARS = 1461 |
| Days per 4 years. | |
| const int64_t | time_shield::MONTHS_PER_YEAR = 12 |
| Months per year. | |
| const int64_t | time_shield::MAX_DAYS_PER_MONTH = 31 |
| Maximum days per month. | |
| const int64_t | time_shield::LEAP_YEAR_PER_100_YEAR = 24 |
| Leap years per 100 years. | |
| const int64_t | time_shield::LEAP_YEAR_PER_400_YEAR = 97 |
| Leap years per 400 years. | |
| constexpr int64_t | time_shield::UNIX_EPOCH = 1970 |
| Start year of UNIX time. | |
| constexpr int64_t | time_shield::OLE_EPOCH = 25569 |
| OLE automation date since UNIX epoch. | |
| constexpr int64_t | time_shield::MAX_YEAR = 292277022000LL |
| Maximum representable year. | |
| constexpr int64_t | time_shield::MIN_YEAR = -2967369602200LL |
| Minimum representable year. | |
| constexpr int64_t | time_shield::ERROR_YEAR = 9223372036854770000LL |
| Error year value. | |
| constexpr int64_t | time_shield::MAX_TIMESTAMP = 9223371890843040000LL |
| Maximum timestamp value. | |
| constexpr int64_t | time_shield::ERROR_TIMESTAMP = 9223372036854770000LL |
| Error timestamp value. | |
| constexpr double | time_shield::MAX_OADATE = (std::numeric_limits<double>::max)() |
| Maximum OLE automation date. | |
| constexpr double | time_shield::AVG_DAYS_PER_YEAR = 365.25 |
| Average days per year. | |
Header file with time-related constants.
This file contains various constants used for time calculations and conversions.
Definition in file constants.hpp.