Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 22 additions & 11 deletions src/lib/es5.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4278,19 +4278,30 @@ declare namespace Intl {
};

interface DateTimeFormatOptions {
localeMatcher?: string;
weekday?: string;
era?: string;
year?: string;
month?: string;
day?: string;
hour?: string;
minute?: string;
second?: string;
timeZoneName?: string;
formatMatcher?: string;
/** output examples – numeric: "2020", 2-digit: "20" */
year?: "numeric" | "2-digit";
/** output examples – numeric: "3", 2-digit: "03", long: "March", short: "Mar", narrow: "M" */
month?: "numeric" | "2-digit" | "long" | "short" | "narrow";
/** output examples – numeric: "2", 2-digit: "02" */
day?: "numeric" | "2-digit";
/** output examples – numeric: "2", 2-digit: "02" */
hour?: "numeric" | "2-digit";
/** output examples – numeric: "2", 2-digit: "02" */
minute?: "numeric" | "2-digit";
/** output examples – numeric: "2", 2-digit: "02" */
second?: "numeric" | "2-digit";
/** output examples – long: "Thursday", short: "Thu", narrow: "T" */
weekday?: "long" | "short" | "narrow";
/** output examples – long: "Anno Domini", short: "AD", narrow "A" */
era?: "long" | "short" | "narrow";
/** set to `true` to force 12-hour am/pm "dayPeriod" values, or `false` to force 24-hour time without */
hour12?: boolean;
/** output examples – long: "Pacific Daylight Time", short: "PDT" */
timeZoneName?: "long" | "short";
/** set to the timezone name you want to render date and time for, e g "UTC", "Europe/Rome" */
timeZone?: string;
localeMatcher?: "best fit" | "lookup";
formatMatcher?: "best fit" | "basic";
}

interface ResolvedDateTimeFormatOptions {
Expand Down