Optional
day
day?: "numeric" | "2-digit"
Optional
era
era?: "long" | "short" | "narrow"
formatMatcher?: "best fit" | "basic"
Optional
hour
hour?: "numeric" | "2-digit"
Optional
hour12
hour12?: boolean
Optional
localeMatcher
localeMatcher?: "lookup" | "best fit"
Optional
minute
minute?: "numeric" | "2-digit"
Optional
month
month?: "long" | "short" | "narrow" | "numeric" | "2-digit"
Optional
second
second?: "numeric" | "2-digit"
Optional
timeZone
timeZone?: string
Optional
timeZoneName
timeZoneName?:
| "long"
| "short"
| "shortOffset"
| "longOffset"
| "shortGeneric"
| "longGeneric"
Optional
weekday
weekday?: "long" | "short" | "narrow"
Optional
year
year?: "numeric" | "2-digit"
Zh
为
Intl.DateTimeFormat
对象提供配置选项的接口。En
An interface that provides configuration options for
Intl.DateTimeFormat
objects.