Explore the API
Every page has live examples running the real package.
AaFormattingintl patterns plus
do ordinals and [literal] text.↺Relative time"5 minutes ago", "in 3 days", long or short.▦Calendar time"Today at 3:00 PM", "Last Monday at…", aware of the week.⏱Durations"2 hours 5 minutes" with correct plurals in every locale.⇥ParsingRead strings back with the same pattern syntax.ƒDateTime helpersWeek numbers, quarters, DST-safe arithmetic.↔TimeSpan & rangesInterval set operations, iteration and clamping.文LocalesEvery locale side by side, live.55+
Locales
Patterns, relative, calendar and duration strings, with CLDR plural rules.
DST
Calendar-safe math
Day, week and month steps keep the wall-clock time across daylight saving.
⏲
Testable clock
Inject "now" once with DateFormatterConfig; every API follows it.
0
Setup
No initializeDateFormatting call: the intl data loads on first use.