MT Core (C++)
Core library for replacing C++ standard in project usage
|
Calendaring systems and utilities for processing dates on various calendars. More...
Classes | |
class | mtcore::calendars::AstronomicalYear |
Astronomical Year. More... | |
struct | mtcore::calendars::CalDate< Calendar > |
Represents a date without a time component. More... | |
struct | mtcore::calendars::CalDateTime< C > |
Wrapper for a date with a time component. More... | |
struct | mtcore::calendars::CalDateTimeZoned< Calendar > |
Wrapper for a date with a time component and timezone. More... | |
struct | mtcore::calendars::Range< DateType > |
Range of dates with start and end. More... | |
struct | mtcore::calendars::Fixed |
Base calendar system tracking the number of days since its epoch. More... | |
struct | mtcore::calendars::Moment |
Base calendar system tracking the number of days (and fraction of days) since its epoch. More... | |
struct | mtcore::calendars::Segments |
Represents time in segments (hour, minute, etc.). More... | |
Variables | |
constexpr i32 | mtcore::calendars::NANOS_PER_SECOND = 1e9 |
Number of nanoseconds per second. | |
constexpr i64 | mtcore::calendars::NANOS_PER_DAY = static_cast<i64>(NANOS_PER_SECOND) * 60 * 60 * 24 |
Number of nanoseconds per day. | |
Calendaring systems and utilities for processing dates on various calendars.
using mtcore::Date = GregorianDate |
Default date (uses Gregorian calendar).
Definition at line 48 of file mtcore_calendars.hpp.
using mtcore::DateTime = GregorianDateTime |
Default date time (uses Gregorian calendar).
Definition at line 50 of file mtcore_calendars.hpp.
Default zoned date time (uses Gregorian calendar).
Definition at line 52 of file mtcore_calendars.hpp.
Date using the Egyptian calendar system.
Definition at line 39 of file mtcore_calendars.hpp.
Month using the Egyptian calendar system.
Definition at line 45 of file mtcore_calendars.hpp.
Date time using the Egyptian calendar system.
Definition at line 41 of file mtcore_calendars.hpp.
Zoned date time using the Egyptian calendar system.
Definition at line 43 of file mtcore_calendars.hpp.
Date using the Gregorian calendar system.
Definition at line 30 of file mtcore_calendars.hpp.
Date time using the Gregorian calendar system.
Definition at line 32 of file mtcore_calendars.hpp.
Zoned date time using the Gregorian calendar system.
Definition at line 34 of file mtcore_calendars.hpp.
Month using the Gregorian calendar system.
Definition at line 36 of file mtcore_calendars.hpp.
using mtcore::Month = GregorianMonth |
Default month (uses Gregorian calendar).
Definition at line 54 of file mtcore_calendars.hpp.
using mtcore::calendars::YearBase = i32 |
Year base type.
Definition at line 29 of file calendars/mtcore_calendars/core.hpp.
|
strong |
|
strong |
Common try_validate errors for time.
Enumerator | |
---|---|
INVALID_HOUR | |
INVALID_MINUTE | |
INVALID_SECOND | |
INVALID_NANOSECOND | |
INVALID_FRACTION |
Definition at line 26 of file calendars/mtcore_calendars/time.hpp.
|
constexpr |
Number of nanoseconds per day.
Definition at line 37 of file calendars/mtcore_calendars/time.hpp.
|
constexpr |
Number of nanoseconds per second.
Definition at line 35 of file calendars/mtcore_calendars/time.hpp.