GregorianCalendarUtils

GregorianCalendarUtils class

Gregorian calendar utility functions.

class GregorianCalendarUtils

Methods

MethodDescription
static double ConvertDateTimeToUDate(DateTime)ConvertDateTime to ICU UDate.
static DateTime ConvertUDateToDateTime(const double)Convert ICU UDate to DateTime.
static std::unique_ptr<codeporting_icu::Calendar> CreateCalendar()Create gregorian ICU calendar.
static codeporting_icu::Calendar& GetCalendar()Gets thread-local gregorian ICU calendar.
static int GetDaysInMonth(int, int)Gets number of days in specific month.
static int GetDaysInYear(int)Gets number of days in specific year.
static bool IsLeapDay(int, int, int)Checks if the day is leap.
static bool IsLeapYear(int)Checks if the year is leap.

Fields

FieldDescription
static constexpr MaxYearMax supported Gregorian year.
static constexpr MinYearMin supported Gregorian year.

See Also