Optionalday
day?: "numeric" | "2-digit"
Optionalera
era?: "long" | "short" | "narrow"
formatMatcher?: "best fit" | "basic"
Optionalhour
hour?: "numeric" | "2-digit"
Optionalhour12
hour12?: boolean
OptionallocaleMatcher
localeMatcher?: "lookup" | "best fit"
Optionalminute
minute?: "numeric" | "2-digit"
Optionalmonth
month?: "long" | "short" | "narrow" | "numeric" | "2-digit"
Optionalsecond
second?: "numeric" | "2-digit"
OptionaltimeZone
timeZone?: string
OptionaltimeZoneName
timeZoneName?:
| "long"
| "short"
| "shortOffset"
| "longOffset"
| "shortGeneric"
| "longGeneric"
Optionalweekday
weekday?: "long" | "short" | "narrow"
Optionalyear
year?: "numeric" | "2-digit"
Zh
为
Intl.DateTimeFormat对象提供配置选项的接口。En
An interface that provides configuration options for
Intl.DateTimeFormatobjects.