import { Enumerate, LeadingZeros, Ordinal, RangeType } from './Number'; import { EnumerateAsString, PadStart, RangeAsString, ReplaceValuesWithMap } from './String'; type ShortEra = 'AC' | 'BC'; type LongYear = LeadingZeros; type MediumYear = LeadingZeros; type ShortYear = PadStart, 2, '0'>; type OrdinalYear = Ordinal; type Quarter = RangeType<1, 4>; type OrdinalQuarter = Ordinal; type MonthNumber = RangeType<1, 12>; type ShortMonth = LeadingZeros; type OrdinalMonth = Ordinal; type ShortNamedMonth = 'Jan' | 'Feb' | 'Mar' | 'Apr' | 'May' | 'Jun' | 'Jul' | 'Aug' | 'Sep' | 'Oct' | 'Nov' | 'Dec'; type LongNamedMonth = 'January' | 'February' | 'March' | 'April' | 'May' | 'June' | 'July' | 'August' | 'September' | 'October' | 'November' | 'December'; type InitialMonth = 'J' | 'F' | 'M' | 'A' | 'S' | 'O' | 'N' | 'D'; type WeekOfYear = RangeAsString<1, 53>; type OrdinalWeekOfYear = Ordinal; type ShortWeekOfYear = PadStart; type DayOfMonth = RangeType<1, 31>; type OrdinalDayOfMonth = Ordinal; type ShortDayOfMonth = LeadingZeros; type DayOfYear = RangeAsString<1, 366>; type OrdinalDayOfYear = Ordinal; type ShortDayOfYear = number; type MediumDayOfYear = PadStart; type BiggerDayOfYear = number; type MediumDayOfWeek = 'Mon' | 'Tue' | 'Wed' | 'Thu' | 'Fri' | 'Sat' | 'Sun'; type LongDayOfWeek = 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday' | 'Sunday'; type InitialDayOfWeek = 'M' | 'T' | 'W' | 'F' | 'S'; type ShortDayOfWeek = 'Mo' | 'Tu' | 'We' | 'Th' | 'Fr' | 'Sa' | 'Su'; type NumberedDayOfWeek = RangeType<1, 7>; type OrdinalDayOfWeek = Ordinal; type ShortNumberedDayOfWeek = LeadingZeros; type AMorPM = 'AM' | 'PM'; type PunctuatedAMorPM = 'a.m' | 'p.m'; type InitialAMorPM = 'a' | 'p'; type NoonOrMidnight = 'noon' | 'midnight'; type FlexibleDayPeriod = 'at night' | 'in the morning'; type Hour1to12 = RangeType<1, 12>; type OrdinalHour1to12 = Ordinal; type ShortHour1to12 = LeadingZeros; type Hour0to23 = Enumerate<23>; type OrdinalHour0to23 = Ordinal; type ShortHour0to23 = LeadingZeros; type Hour0to11 = Enumerate<11>; type OrdinalHour0to11 = Ordinal; type ShortHour0to11 = LeadingZeros; type Hour0to24 = RangeType<1, 24>; type OrdinalHour0to24 = Ordinal; type ShortHour0to24 = LeadingZeros; type MinuteOrSecond = EnumerateAsString<59>; type OrdinalMinuteOrSecond = Ordinal; type ShortMinuteOrSecond = PadStart; type TenthOfSecond = Enumerate<9>; type HundredthOfSecond = EnumerateAsString<100>; type ThousandthOfSecond = EnumerateAsString<1000>; type TenThousandthOfSecond = number; type TimezoneWithoutColon = `${'-' | '+'}${number}`; type TimezoneWithColon = `${'-' | '+'}${number}:${number}`; type TimezoneGMT = `GMT${'-' | '+'}${number}${`:${number}` | ''}`; type ShortLocalizedDate = `${ShortDayOfMonth}/${ShortMonth}/${LongYear}`; type MediumLocalizedDate = `${ShortNamedMonth} ${DayOfMonth}, ${LongYear}`; type OrdinalLocalizedDate = `${ShortNamedMonth} ${DayOfMonth}th, ${LongYear}`; type BiggerLocalizedDate = `${LongDayOfWeek}, ${LongNamedMonth} ${DayOfMonth}th, ${LongYear}`; type ShortLocalizedTime = `${RangeType<1, 12>}:${MinuteOrSecond} ${AMorPM}`; type ShortLocalizedTimeWithMilliseconds = `${RangeType<1, 12>}:${MinuteOrSecond}:${MinuteOrSecond} ${AMorPM}`; type ShortLocalizedTimeWithMillisecondsAndTimezone = `${ShortLocalizedTimeWithMilliseconds} ${string}`; type ShortDateAndTime = string; type OrdinalDateAndTimeWithMilliseconds = string; /** * creates a type for a formatted date string as per the [`date-fns` format](https://date-fns.org/v2.20.1/docs/format) */ export type FormattedDate = ReplaceValuesWithMap; R: number; uuuu: LongYear; uuu: MediumYear; uu: LeadingZeros; u: number; qqqq: `${OrdinalQuarter} quarter`; qqq: `Q${Quarter}`; qq: LeadingZeros; q: Quarter; QQQQ: `${OrdinalQuarter} quarter`; QQQ: `Q${Quarter}`; QQ: LeadingZeros; Q: Quarter; M: RangeType<1, 12>; Mo: OrdinalMonth; MM: ShortMonth; MMM: ShortNamedMonth; MMMM: LongNamedMonth; MMMMM: InitialMonth; L: RangeType<1, 12>; Lo: OrdinalMonth; LL: ShortMonth; LLL: ShortNamedMonth; LLLL: LongNamedMonth; LLLLL: InitialMonth; w: ShortWeekOfYear; wo: OrdinalWeekOfYear; ww: ShortWeekOfYear; I: ShortWeekOfYear; Io: OrdinalWeekOfYear; II: ShortWeekOfYear; d: DayOfMonth; do: OrdinalDayOfMonth; dd: ShortDayOfMonth; D: DayOfYear; Do: OrdinalDayOfYear; DD: ShortDayOfYear; DDD: MediumDayOfYear; DDDD: BiggerDayOfYear; E: MediumDayOfWeek; EE: MediumDayOfWeek; EEE: MediumDayOfWeek; EEEE: LongDayOfWeek; EEEEE: InitialDayOfWeek; EEEEEE: ShortDayOfWeek; i: NumberedDayOfWeek; io: OrdinalDayOfWeek; ii: ShortNumberedDayOfWeek; iii: MediumDayOfWeek; iiii: LongDayOfWeek; iiiii: InitialDayOfWeek; iiiiii: ShortDayOfWeek; e: NumberedDayOfWeek; eo: OrdinalDayOfWeek; ee: ShortNumberedDayOfWeek; eee: MediumDayOfWeek; eeee: LongDayOfWeek; eeeee: InitialDayOfWeek; eeeeee: ShortDayOfWeek; c: NumberedDayOfWeek; co: OrdinalDayOfWeek; cc: ShortNumberedDayOfWeek; ccc: MediumDayOfWeek; cccc: LongDayOfWeek; ccccc: InitialDayOfWeek; cccccc: ShortDayOfWeek; a: AMorPM; aa: AMorPM; aaa: Lowercase; aaaa: PunctuatedAMorPM; aaaaa: InitialAMorPM; b: AMorPM | NoonOrMidnight; bb: AMorPM | NoonOrMidnight; bbb: Lowercase | NoonOrMidnight; bbbb: PunctuatedAMorPM | NoonOrMidnight; bbbbb: InitialAMorPM | NoonOrMidnight; B: FlexibleDayPeriod; BB: FlexibleDayPeriod; BBB: FlexibleDayPeriod; BBBB: FlexibleDayPeriod; BBBBB: FlexibleDayPeriod; h: Hour1to12; ho: OrdinalHour1to12; hh: ShortHour1to12; H: Hour0to23; Ho: OrdinalHour0to23; HH: ShortHour0to23; K: Hour0to11; Ko: OrdinalHour0to11; KK: ShortHour0to11; k: Hour0to24; ko: OrdinalHour0to24; kk: ShortHour0to24; m: MinuteOrSecond; mo: OrdinalMinuteOrSecond; mm: ShortMinuteOrSecond; s: MinuteOrSecond; so: OrdinalMinuteOrSecond; ss: ShortMinuteOrSecond; S: TenthOfSecond; SS: HundredthOfSecond; SSS: ThousandthOfSecond; SSSS: TenThousandthOfSecond; X: TimezoneWithoutColon | 'Z'; XX: TimezoneWithoutColon | 'Z'; XXX: TimezoneWithColon | 'Z'; XXXX: TimezoneWithoutColon | `+${number}` | 'Z'; XXXXX: TimezoneWithColon | `+${number}` | 'Z'; x: TimezoneWithoutColon; xx: TimezoneWithoutColon; xxx: TimezoneWithColon; xxxx: TimezoneWithoutColon | `+${number}`; xxxxx: TimezoneWithColon | `+${number}`; O: TimezoneGMT; OO: TimezoneGMT; OOO: TimezoneGMT; OOOO: TimezoneGMT; z: TimezoneGMT; zz: TimezoneGMT; zzz: TimezoneGMT; zzzz: TimezoneGMT; t: number; tt: number; T: number; TT: number; P: ShortLocalizedDate; PP: MediumLocalizedDate; PPP: OrdinalLocalizedDate; PPPP: BiggerLocalizedDate; p: ShortLocalizedTime; pp: ShortLocalizedTimeWithMilliseconds; ppp: ShortLocalizedTimeWithMillisecondsAndTimezone; pppp: ShortLocalizedTimeWithMillisecondsAndTimezone; Pp: ShortDateAndTime; PPpp: OrdinalDateAndTimeWithMilliseconds; }>; export {}; //# sourceMappingURL=Date.d.ts.map