Format day period (AM/PM).
"am" for morning, "pm" for afternoon/evening
Optional
options: { width: "narrow" | "abbreviated" | "wide" }Format width: "narrow", "abbreviated", or "wide"
Localized day period string
Format era (BC/AD).
0 for BC (Before Christ), 1 for AD (Anno Domini)
Optional
options: { width: "narrow" | "abbreviated" | "wide" }Format width: "narrow", "abbreviated", or "wide"
Localized era string
Format month name.
Month index (0-11, where 0 is January)
Optional
options: { width: "narrow" | "abbreviated" | "wide" }Format width: "narrow", "abbreviated", or "wide"
Localized month name
Format weekday name.
Weekday index (0-6, where 0 is Sunday)
Optional
options: { width: "narrow" | "abbreviated" | "wide" }Format width: "narrow", "abbreviated", or "wide"
Localized weekday name
Localization interface for formatting date/time components.
Provides methods to localize various date/time components based on locale-specific formats. Each method accepts an optional width parameter to control the output format: