Skip to main content

Module settings

Module settings 

Source

Structs§

DateData
PartsOfDay
Settings

Enums§

DateOrder
DatePart
ParsedDateTime
ParserKind
PartOfDay
Period
PreferDatesFrom
PreferDayOfMonth
PreferMonthOfYear
StartOfWeek
StrictDateOrder

Functions§

extract_region_from_locale
Extract an ISO 3166-1 alpha-2 region subtag from a BCP-47 locale tag (e.g. "en-GB" -> "GB", "en_CA" -> "CA", "zh-Hans-TW" -> "TW"), ignoring 4-letter script subtags like "uz-Cyrl".
region_to_date_order
Map a 2-letter region/country code to its conventional numeric date order.