MT Core (C++)
Core library for replacing C++ standard in project usage
Loading...
Searching...
No Matches
mtcore::calendars Namespace Reference

Namespace for calendaring systems. More...

Namespaces

namespace  systems
 
namespace  zone
 

Classes

class  AnnoDominiYear
 
class  AstronomicalYear
 Astronomical Year. More...
 
struct  CalDate
 Represents a date without a time component. More...
 
struct  CalDateTime
 Wrapper for a date with a time component. More...
 
struct  CalDateTime< Calendar >
 
struct  CalDateTimeZoned
 Wrapper for a date with a time component and timezone. More...
 
struct  DayFraction
 
struct  Fixed
 Base calendar system tracking the number of days since its epoch. More...
 
struct  Moment
 Base calendar system tracking the number of days (and fraction of days) since its epoch. More...
 
struct  NanoSeconds
 
struct  Range
 Range of dates with start and end. More...
 
struct  Segments
 Represents time in segments (hour, minute, etc.). More...
 
struct  TimeZone
 

Concepts

concept  IsDayCalendarSystem
 
concept  IsTimeCalendarSystem
 

Typedefs

using YearBase = i32
 Year base type.
 

Enumerations

enum class  DayOfWeek {
  DayOfWeek::Sunday , DayOfWeek::Monday , DayOfWeek::Tuesday , DayOfWeek::Wednesday ,
  DayOfWeek::Thursday , DayOfWeek::Friday , DayOfWeek::Saturday
}
 Enum class for the day of week. More...
 
enum class  TimeValidationError {
  TimeValidationError::INVALID_HOUR , TimeValidationError::INVALID_MINUTE , TimeValidationError::INVALID_SECOND , TimeValidationError::INVALID_NANOSECOND ,
  TimeValidationError::INVALID_FRACTION
}
 Common try_validate errors for time. More...
 

Variables

constexpr i32 FIXED_EPOCH = 0
 
constexpr i32 GREGORIAN_EPOCH = 1
 
constexpr i32 EGYPTIAN_EPOCH = -272787
 
constexpr i32 ARMENIAN_EPOCH = 201443
 
constexpr i32 AKAN_EPOCH = 37
 
constexpr i32 JULIAN_EPOCH = -1
 
constexpr i32 BALINESE_PAWUKON_EPOCH = -1721279
 
constexpr i32 COPTIC_EPOCH = 103605
 
constexpr i32 ETHIOPIC_EPOCH = 2796
 
constexpr i32 HEBREW_EPOCH = -1373427
 
constexpr i32 ICELANDIC_EPOCH = 109
 
constexpr i32 ISLAMIC_EPOCH = 227015
 
constexpr f64 JULIAN_DAY_EPOCH = -1721424.5
 
constexpr i32 MAYAN_LONG_DATE_EPOCH = -1137142
 
constexpr i32 MAYAN_HAAB_EPOCH = MAYAN_LONG_DATE_EPOCH - 348
 
constexpr i32 MAYAN_TZOLKIN_EPOCH = MAYAN_LONG_DATE_EPOCH - 159
 
constexpr i32 UNIX_TIMESTAMP_EPOCH = 719163
 
constexpr f64 MODIFIED_JULIAN_DAY_EPOCH = 678576
 
constexpr i32 ZOROASTRIAN_EPOCH = 230638
 
constexpr i32 AZTEC_CORRELATION = 555403
 
constexpr i32 TONALPOHUALLI_CORRELATION = AZTEC_CORRELATION - 104
 
constexpr i32 XIHUITL_CORRELATION = AZTEC_CORRELATION - 201
 
constexpr f64 ARYA_LUNAR_MONTH = 1577917500.0 / 53433336.0
 
constexpr f64 ARYA_LUNAR_DAY = ARYA_LUNAR_MONTH / 30.0
 
constexpr i32 OLD_HINDU_SOLAR_EPOCH = -1132959
 
constexpr f64 ARYA_SOLAR_YEAR = 15779175.0 / 43200.0
 
constexpr f64 ARYA_SOLAR_MONTH = ARYA_SOLAR_YEAR / 12.0
 
constexpr f64 ARYA_JOVIAN_PERIOD = 1577917500.0 / 364224.0
 
constexpr i32 NANOS_PER_SECOND = 1e9
 Number of nanoseconds per second.
 
constexpr i64 NANOS_PER_DAY = static_cast<i64>(NANOS_PER_SECOND) * 60 * 60 * 24
 Number of nanoseconds per day.
 

Detailed Description

Namespace for calendaring systems.

Variable Documentation

◆ AKAN_EPOCH

i32 mtcore::calendars::AKAN_EPOCH = 37
constexpr

Definition at line 29 of file epochs.hpp.

◆ ARMENIAN_EPOCH

i32 mtcore::calendars::ARMENIAN_EPOCH = 201443
constexpr

Definition at line 28 of file epochs.hpp.

◆ ARYA_JOVIAN_PERIOD

f64 mtcore::calendars::ARYA_JOVIAN_PERIOD = 1577917500.0 / 364224.0
constexpr

Definition at line 55 of file epochs.hpp.

◆ ARYA_LUNAR_DAY

f64 mtcore::calendars::ARYA_LUNAR_DAY = ARYA_LUNAR_MONTH / 30.0
constexpr

Definition at line 51 of file epochs.hpp.

◆ ARYA_LUNAR_MONTH

f64 mtcore::calendars::ARYA_LUNAR_MONTH = 1577917500.0 / 53433336.0
constexpr

Definition at line 50 of file epochs.hpp.

◆ ARYA_SOLAR_MONTH

f64 mtcore::calendars::ARYA_SOLAR_MONTH = ARYA_SOLAR_YEAR / 12.0
constexpr

Definition at line 54 of file epochs.hpp.

◆ ARYA_SOLAR_YEAR

f64 mtcore::calendars::ARYA_SOLAR_YEAR = 15779175.0 / 43200.0
constexpr

Definition at line 53 of file epochs.hpp.

◆ AZTEC_CORRELATION

i32 mtcore::calendars::AZTEC_CORRELATION = 555403
constexpr

Definition at line 46 of file epochs.hpp.

◆ BALINESE_PAWUKON_EPOCH

i32 mtcore::calendars::BALINESE_PAWUKON_EPOCH = -1721279
constexpr

Definition at line 31 of file epochs.hpp.

◆ COPTIC_EPOCH

i32 mtcore::calendars::COPTIC_EPOCH = 103605
constexpr

Definition at line 32 of file epochs.hpp.

◆ EGYPTIAN_EPOCH

i32 mtcore::calendars::EGYPTIAN_EPOCH = -272787
constexpr

Definition at line 27 of file epochs.hpp.

◆ ETHIOPIC_EPOCH

i32 mtcore::calendars::ETHIOPIC_EPOCH = 2796
constexpr

Definition at line 33 of file epochs.hpp.

◆ FIXED_EPOCH

i32 mtcore::calendars::FIXED_EPOCH = 0
constexpr

Definition at line 25 of file epochs.hpp.

◆ GREGORIAN_EPOCH

i32 mtcore::calendars::GREGORIAN_EPOCH = 1
constexpr

Definition at line 26 of file epochs.hpp.

◆ HEBREW_EPOCH

i32 mtcore::calendars::HEBREW_EPOCH = -1373427
constexpr

Definition at line 34 of file epochs.hpp.

◆ ICELANDIC_EPOCH

i32 mtcore::calendars::ICELANDIC_EPOCH = 109
constexpr

Definition at line 35 of file epochs.hpp.

◆ ISLAMIC_EPOCH

i32 mtcore::calendars::ISLAMIC_EPOCH = 227015
constexpr

Definition at line 36 of file epochs.hpp.

◆ JULIAN_DAY_EPOCH

f64 mtcore::calendars::JULIAN_DAY_EPOCH = -1721424.5
constexpr

Definition at line 37 of file epochs.hpp.

◆ JULIAN_EPOCH

i32 mtcore::calendars::JULIAN_EPOCH = -1
constexpr

Definition at line 30 of file epochs.hpp.

◆ MAYAN_HAAB_EPOCH

i32 mtcore::calendars::MAYAN_HAAB_EPOCH = MAYAN_LONG_DATE_EPOCH - 348
constexpr

Definition at line 39 of file epochs.hpp.

◆ MAYAN_LONG_DATE_EPOCH

i32 mtcore::calendars::MAYAN_LONG_DATE_EPOCH = -1137142
constexpr

Definition at line 38 of file epochs.hpp.

◆ MAYAN_TZOLKIN_EPOCH

i32 mtcore::calendars::MAYAN_TZOLKIN_EPOCH = MAYAN_LONG_DATE_EPOCH - 159
constexpr

Definition at line 40 of file epochs.hpp.

◆ MODIFIED_JULIAN_DAY_EPOCH

f64 mtcore::calendars::MODIFIED_JULIAN_DAY_EPOCH = 678576
constexpr

Definition at line 42 of file epochs.hpp.

◆ OLD_HINDU_SOLAR_EPOCH

i32 mtcore::calendars::OLD_HINDU_SOLAR_EPOCH = -1132959
constexpr

Definition at line 52 of file epochs.hpp.

◆ TONALPOHUALLI_CORRELATION

i32 mtcore::calendars::TONALPOHUALLI_CORRELATION = AZTEC_CORRELATION - 104
constexpr

Definition at line 47 of file epochs.hpp.

◆ UNIX_TIMESTAMP_EPOCH

i32 mtcore::calendars::UNIX_TIMESTAMP_EPOCH = 719163
constexpr

Definition at line 41 of file epochs.hpp.

◆ XIHUITL_CORRELATION

i32 mtcore::calendars::XIHUITL_CORRELATION = AZTEC_CORRELATION - 201
constexpr

Definition at line 48 of file epochs.hpp.

◆ ZOROASTRIAN_EPOCH

i32 mtcore::calendars::ZOROASTRIAN_EPOCH = 230638
constexpr

Definition at line 43 of file epochs.hpp.