Gregorian calendar utility functions. More...
Static Public Member Functions | |
static int | GetDaysInYear (int year) |
static int | GetDaysInMonth (int year, int month) |
static bool | IsLeapYear (int year) |
static bool | IsLeapDay (int year, int month, int day) |
static std::unique_ptr< codeporting_icu::Calendar > | CreateCalendar () |
static codeporting_icu::Calendar & | GetCalendar () |
static double | ConvertDateTimeToUDate (DateTime time) |
Convert DateTime to ICU UDate. More... | |
static DateTime | ConvertUDateToDateTime (const double time) |
Convert ICU UDate to DateTime. More... | |
Static Public Attributes | |
static constexpr int | MinYear = 1 |
Min supported Gregorian year. More... | |
static constexpr int | MaxYear = 9999 |
Max supported Gregorian year. More... | |
Gregorian calendar utility functions.
|
static |
|
static |
|
static |
Create gregorian ICU calendar.
|
static |
Gets thread-local gregorian ICU calendar.
|
static |
Gets number of days in specific month.
year | Year. |
month | Month. |
|
static |
Gets number of days in specific year.
year | Year. |
|
static |
Checks if the day is leap.
year | Year. |
month | Month. |
day | Day. |
|
static |
Checks if the year is leap.
year | Year. |
|
static |
Max supported Gregorian year.
|
static |
Min supported Gregorian year.