API Reference Cldr Dates & Times v2.12.0

modules

Modules

Provides localization and formatting of a Date struct or any map with the keys :year, :month, :day and :calendar.

Interval formats allow for software to format intervals like "Jan 10-12, 2008" as a shorter and more natural format than "Jan 10, 2008 - Jan 12, 2008". They are designed to take a start and end date, time or datetime plus a formatting pattern and use that information to produce a localized format.

Provides localization and formatting of a DateTime struct or any map with the keys :year, :month, :day, :calendar, :hour, :minute, :second and optionally :microsecond.

Tokenizes and parses Date, Time and DateTime format strings.

Exception raised when tokenizing a datetime format.

Exception raised when the first datetime in an interval is greater than the last datetime.

Manages the Date, Time and DateTime formats defined by CLDR.

Functions that implement the formatting for each specific format symbol.

Exception raised when the two datetimes are in different time zones

Interval formats allow for software to format intervals like "Jan 10-12, 2008" as a shorter and more natural format than "Jan 10, 2008 - Jan 12, 2008". They are designed to take a start and end date, time or datetime plus a formatting pattern and use that information to produce a localized format.

Exception raised when attempting to compile an interval format.

Exception raised when formatting and there is no data for the given style.

Functions to support the string formatting of relative time/datetime numbers.

Exception raised when formatting and there is no data for the given format.

Interval formats allow for software to format intervals like "Jan 10-12, 2008" as a shorter and more natural format than "Jan 10, 2008 - Jan 12, 2008". They are designed to take a start and end date, time or datetime plus a formatting pattern and use that information to produce a localized format.

Provides localization and formatting of a Time struct or any map with the keys :hour, :minute, :second and optionlly :microsecond.

Interval formats allow for software to format intervals like "Jan 10-12, 2008" as a shorter and more natural format than "Jan 10, 2008 - Jan 12, 2008". They are designed to take a start and end date, time or datetime plus a formatting pattern and use that information to produce a localized format.

Exception raised when an attempt is made to use a time unit that is not known. in Cldr.DateTime.Relative.