Tempo API
    Preparing search index...

    Class Tempo

    A powerful wrapper around Temporal.ZonedDateTime for flexible parsing and intuitive manipulation of date-time objects. Bridges the gap between raw string/number inputs and the strict requirements of the ECMAScript Temporal API.

    Index
    • Instantiates a new Tempo object with configuration only.

      Parameters

      • Optionaloptions: Options

        Configuration options for this specific instance.

      Returns Tempo

    • Instantiates a new Tempo object with a value.

      Parameters

      • tempo: DateTime

        The date-time value to parse.

      • Optionaloptions: Options

        Configuration options for this specific instance.

      Returns Tempo

    Interval: IntervalConstructor = ...

    Interval class for checking overlaps and bounds between Temporal points

    isSandbox: <T = any>(sandbox?: any) => sandbox is T = isSandbox

    check if a supplied variable is a valid Tempo sandbox subclass or instance

    Type Declaration

      • <T = any>(sandbox?: any): sandbox is T
      • Checks if the given value carries the Tempo Sandbox brand. The brand key is a global Symbol.for key, so any object that sets it also passes. Do not use this check alone to validate untrusted input. Uses brand checking via the $Sandbox symbol.

        Type Parameters

        • T = any

        Parameters

        • Optionalsandbox: any

          The value to check

        Returns sandbox is T

        True if the value is a Tempo sandbox instance or subclass

        if (isSandbox(value)) {
        // value is narrowed
        }
    • get epoch(): Readonly<{ ms: number; ns: bigint; ss: number; us: number }>

      units since epoch for this date-time instance

      Returns Readonly<{ ms: number; ns: bigint; ss: number; us: number }>

    • get fmt(): Record<string, string | undefined>

      Formatted results for all pre-defined format codes

      Returns Record<string, string | undefined>

    • get geo(): Readonly<t.GeoConfig>

      Resolved geographic coordinates object ({ latitude, longitude, elevation, sphere, ... })

      Returns Readonly<t.GeoConfig>

    • get mmm(): | "Jan"
      | "Feb"
      | "Mar"
      | "Apr"
      | "May"
      | "Jun"
      | "Jul"
      | "Aug"
      | "Sep"
      | "Oct"
      | "Nov"
      | "Dec"
      | undefined

      Short month name (e.g., 'Jan')

      Returns
          | "Jan"
          | "Feb"
          | "Mar"
          | "Apr"
          | "May"
          | "Jun"
          | "Jul"
          | "Aug"
          | "Sep"
          | "Oct"
          | "Nov"
          | "Dec"
          | undefined

    • get mon(): | "May"
      | "January"
      | "February"
      | "March"
      | "April"
      | "June"
      | "July"
      | "August"
      | "September"
      | "October"
      | "November"
      | "December"
      | undefined

      Full month name (e.g., 'January')

      Returns
          | "May"
          | "January"
          | "February"
          | "March"
          | "April"
          | "June"
          | "July"
          | "August"
          | "September"
          | "October"
          | "November"
          | "December"
          | undefined

    • get wkd(): | "Monday"
      | "Tuesday"
      | "Wednesday"
      | "Thursday"
      | "Friday"
      | "Saturday"
      | "Sunday"
      | undefined

      Full weekday name (e.g., 'Monday')

      Returns
          | "Monday"
          | "Tuesday"
          | "Wednesday"
          | "Thursday"
          | "Friday"
          | "Saturday"
          | "Sunday"
          | undefined

    • get www(): "Mon" | "Tue" | "Wed" | "Thu" | "Fri" | "Sat" | "Sun" | undefined

      Short weekday name (e.g., 'Mon')

      Returns "Mon" | "Tue" | "Wed" | "Thu" | "Fri" | "Sat" | "Sun" | undefined

    • get cache(): SecureObject<
          {
              weak: SecureObject<
                  {
                      get isWeakCache(): boolean;
                      clear(): void;
                      delete(key: string): boolean;
                      get(key: string): any;
                      getOrSet<V extends WeakKey>(key: string, factory: (key: string) => V): V;
                      has(key: string): boolean;
                      set<V extends WeakKey>(
                          key: string,
                          value: V,
                      ): { readonly get: (key: string) => any; readonly has: (key: string) => boolean; readonly set: <V extends WeakKey>(key: string, value: V) => ...; readonly getOrSet: <V extends WeakKey>(key: string, factory: (key: string) => V) => V; readonly delete: (key: string) => boolean; readonly clear: () => void; readonly isWeakC...;
                  },
              >;
              clear(count?: number): void;
              delete(key: string): boolean;
              deletePrefix(prefix: string): number;
              entries(): MapIterator<[string, string]>;
              fromEntries(
                  entries: Iterable<readonly [string, string]>,
              ): { readonly get: (key: string) => string | undefined; readonly has: (key: string) => boolean; readonly set: (key: string, value: string) => ...; readonly setStatic: (key: string, value: string) => ...; ... 6 more ...; readonly weak: SecureObject<...>; };
              get(key: string): string | undefined;
              has(key: string): boolean;
              set(
                  key: string,
                  value: string,
              ): { readonly get: (key: string) => string | undefined; readonly has: (key: string) => boolean; readonly set: (key: string, value: string) => ...; readonly setStatic: (key: string, value: string) => ...; ... 6 more ...; readonly weak: SecureObject<...>; };
              setStatic(
                  key: string,
                  value: string,
              ): { readonly get: (key: string) => string | undefined; readonly has: (key: string) => boolean; readonly set: (key: string, value: string) => ...; readonly setStatic: (key: string, value: string) => ...; ... 6 more ...; readonly weak: SecureObject<...>; };
              toJSON(): Record<string, string>;
          },
      >

      high-performance in-memory cache facade for glossary and dynamic parse results

      Returns SecureObject<
          {
              weak: SecureObject<
                  {
                      get isWeakCache(): boolean;
                      clear(): void;
                      delete(key: string): boolean;
                      get(key: string): any;
                      getOrSet<V extends WeakKey>(key: string, factory: (key: string) => V): V;
                      has(key: string): boolean;
                      set<V extends WeakKey>(
                          key: string,
                          value: V,
                      ): { readonly get: (key: string) => any; readonly has: (key: string) => boolean; readonly set: <V extends WeakKey>(key: string, value: V) => ...; readonly getOrSet: <V extends WeakKey>(key: string, factory: (key: string) => V) => V; readonly delete: (key: string) => boolean; readonly clear: () => void; readonly isWeakC...;
                  },
              >;
              clear(count?: number): void;
              delete(key: string): boolean;
              deletePrefix(prefix: string): number;
              entries(): MapIterator<[string, string]>;
              fromEntries(
                  entries: Iterable<readonly [string, string]>,
              ): { readonly get: (key: string) => string | undefined; readonly has: (key: string) => boolean; readonly set: (key: string, value: string) => ...; readonly setStatic: (key: string, value: string) => ...; ... 6 more ...; readonly weak: SecureObject<...>; };
              get(key: string): string | undefined;
              has(key: string): boolean;
              set(
                  key: string,
                  value: string,
              ): { readonly get: (key: string) => string | undefined; readonly has: (key: string) => boolean; readonly set: (key: string, value: string) => ...; readonly setStatic: (key: string, value: string) => ...; ... 6 more ...; readonly weak: SecureObject<...>; };
              setStatic(
                  key: string,
                  value: string,
              ): { readonly get: (key: string) => string | undefined; readonly has: (key: string) => boolean; readonly set: (key: string, value: string) => ...; readonly setStatic: (key: string, value: string) => ...; ... 6 more ...; readonly weak: SecureObject<...>; };
              toJSON(): Record<string, string>;
          },
      >

    • get Enum(): Readonly<
          {
              extend: {
                  <T extends Property<any>, const E extends readonly any[]>(
                      enumObj: T,
                      list: E,
                      frozen?: boolean,
                  ): wrap<Omit<T, keyof Index<E>> & Index<E>>;
                  <T extends Property<any>, const E extends Property<any>>(
                      enumObj: T,
                      list: E,
                      frozen?: boolean,
                  ): wrap<Omit<T, keyof E> & E>;
              };
              from: {};
              isEnum: <T extends Property<any> = any>(val: unknown) => val is wrap<T>;
              merge: <const T extends readonly Property<any>[]>(
                  ...sources: T,
              ) => wrap<MergeSources<T>>;
              "[hasInstance]"(instance: any): boolean;
              count<T extends Property<any>>(enumObj: T): number;
              entries<T extends Property<any>>(
                  enumObj: T,
              ): readonly (readonly [KeyOf<T>, ValueOf<T>])[];
              get<T extends Property<any>>(
                  enumObj: T,
                  key: string | number | symbol | KeyOf<T>,
              ): ValueOf<T> | undefined;
              has<T extends Property<any>>(
                  enumObj: T,
                  key: string | number | symbol | KeyOf<T>,
              ): key is KeyOf<T>;
              hasOwn<T extends Property<any>>(
                  enumObj: T,
                  key: string | number | symbol | KeyOf<T>,
              ): key is KeyOf<T>;
              includes<T extends Property<any>>(enumObj: T, search: any): boolean;
              invert<T extends Property<any>>(enumObj: T): Readonly<Invert<T>>;
              keyOf<T extends Property<any>>(
                  enumObj: T,
                  search: any,
              ): KeyOf<T> | undefined;
              keys<T extends Property<any>>(enumObj: T): readonly KeyOf<T>[];
              values<T extends Property<any>>(enumObj: T): readonly ValueOf<T>[];
          },
      >

      Enum reflection and helper suite

      Returns Readonly<
          {
              extend: {
                  <T extends Property<any>, const E extends readonly any[]>(
                      enumObj: T,
                      list: E,
                      frozen?: boolean,
                  ): wrap<Omit<T, keyof Index<E>> & Index<E>>;
                  <T extends Property<any>, const E extends Property<any>>(
                      enumObj: T,
                      list: E,
                      frozen?: boolean,
                  ): wrap<Omit<T, keyof E> & E>;
              };
              from: {};
              isEnum: <T extends Property<any> = any>(val: unknown) => val is wrap<T>;
              merge: <const T extends readonly Property<any>[]>(
                  ...sources: T,
              ) => wrap<MergeSources<T>>;
              "[hasInstance]"(instance: any): boolean;
              count<T extends Property<any>>(enumObj: T): number;
              entries<T extends Property<any>>(
                  enumObj: T,
              ): readonly (readonly [KeyOf<T>, ValueOf<T>])[];
              get<T extends Property<any>>(
                  enumObj: T,
                  key: string | number | symbol | KeyOf<T>,
              ): ValueOf<T> | undefined;
              has<T extends Property<any>>(
                  enumObj: T,
                  key: string | number | symbol | KeyOf<T>,
              ): key is KeyOf<T>;
              hasOwn<T extends Property<any>>(
                  enumObj: T,
                  key: string | number | symbol | KeyOf<T>,
              ): key is KeyOf<T>;
              includes<T extends Property<any>>(enumObj: T, search: any): boolean;
              invert<T extends Property<any>>(enumObj: T): Readonly<Invert<T>>;
              keyOf<T extends Property<any>>(
                  enumObj: T,
                  search: any,
              ): KeyOf<T> | undefined;
              keys<T extends Property<any>>(enumObj: T): readonly KeyOf<T>[];
              values<T extends Property<any>>(enumObj: T): readonly ValueOf<T>[];
          },
      >

    • get enums(): {
          CACHE: EnumifyType<{ Off: false; On: true; Refresh: "refresh" }>;
          COMPASS: Extend<
              EnumifyType<
                  {
                      East: "east";
                      Equator: "equator";
                      North: "north";
                      South: "south";
                      West: "west";
                  },
              >,
              string,
              string,
          >;
          CONFIG: EnumifyType<
              Index<
                  readonly [
                      "config",
                      "parse",
                      "value",
                      "intl",
                      "localeInfo",
                      "store",
                      "discovery",
                      "debug",
                      "catch",
                      "silent",
                      "timeZone",
                      "calendar",
                      "locale",
                      "sphere",
                      "geo",
                      "latitude",
                      "lat",
                      "longitude",
                      "lng",
                      "timeStamp",
                      "registry",
                      "plugins",
                      "extends",
                      "cache",
                  ],
              >,
          >;
          DURATION: EnumifyType<
              {
                  day: 86400;
                  hour: 3600;
                  microsecond: 0.000001;
                  millisecond: 0.001;
                  minute: 60;
                  month: 2628000;
                  nanosecond: 1e-9;
                  second: 1;
                  week: 604800;
                  year: 31536000;
              },
          >;
          DURATIONS: EnumifyType<
              {
                  days: 86400000;
                  hours: 3600000;
                  microseconds: 0.001;
                  milliseconds: 1;
                  minutes: 60000;
                  months: 2628000000;
                  nanoseconds: 0.000001;
                  seconds: 1000;
                  weeks: 604800000;
                  years: 31536000000;
              },
          >;
          ELEMENT: EnumifyType<
              {
                  dd: "day";
                  hh: "hour";
                  mi: "minute";
                  mm: "month";
                  ms: "millisecond";
                  ns: "nanosecond";
                  ss: "second";
                  us: "microsecond";
                  woy: "week";
                  ww: "week";
                  yy: "year";
              },
          >;
          Enum: Readonly<
              {
                  extend: {
                      <T extends Property<any>, const E extends readonly any[]>(
                          enumObj: T,
                          list: E,
                          frozen?: boolean,
                      ): wrap<Omit<T, keyof Index<E>> & Index<E>>;
                      <T extends Property<any>, const E extends Property<any>>(
                          enumObj: T,
                          list: E,
                          frozen?: boolean,
                      ): wrap<Omit<T, keyof E> & E>;
                  };
                  from: {};
                  isEnum: <T extends Property<any> = any>(val: unknown) => val is wrap<T>;
                  merge: <const T extends readonly Property<any>[]>(
                      ...sources: T,
                  ) => wrap<MergeSources<T>>;
                  "[hasInstance]"(instance: any): boolean;
                  count<T extends Property<any>>(enumObj: T): number;
                  entries<T extends Property<any>>(
                      enumObj: T,
                  ): readonly (readonly [KeyOf<T>, ValueOf<T>])[];
                  get<T extends Property<any>>(
                      enumObj: T,
                      key: string | number | symbol | KeyOf<T>,
                  ): ValueOf<T> | undefined;
                  has<T extends Property<any>>(
                      enumObj: T,
                      key: string | number | symbol | KeyOf<T>,
                  ): key is KeyOf<T>;
                  hasOwn<T extends Property<any>>(
                      enumObj: T,
                      key: string | number | symbol | KeyOf<T>,
                  ): key is KeyOf<T>;
                  includes<T extends Property<any>>(enumObj: T, search: any): boolean;
                  invert<T extends Property<any>>(enumObj: T): Readonly<Invert<T>>;
                  keyOf<T extends Property<any>>(
                      enumObj: T,
                      search: any,
                  ): KeyOf<T> | undefined;
                  keys<T extends Property<any>>(enumObj: T): readonly KeyOf<T>[];
                  values<T extends Property<any>>(enumObj: T): readonly ValueOf<T>[];
              },
          >;
          FORMAT: Extend<
              EnumifyType<
                  {
                      date: "{yyyy}-{mm}-{dd}";
                      dayDate: "{dd}-{mmm}-{yyyy}";
                      dayMonth: "{dd}-{mmm}";
                      dayTime: "{dd}-{mmm}-{yyyy} {hh}:{mi}:{ss}";
                      display: "{www}, {dd} {mmm} {yyyy}";
                      logStamp: "{ymd}T{hms}.{ff}";
                      sortTime: "{yyyy}-{mm}-{dd} {hh}:{mi}:{ss}";
                      time: "{hh}:{mi}:{ss}";
                      weekDate: "{www}, {yyyy}-{mmm}-{dd}";
                      weekStamp: "{www}, {yyyy}-{mmm}-{dd} {hh}:{mi}:{ss}.{ff}";
                      weekTime: "{www}, {yyyy}-{mmm}-{dd} {hh}:{mi}:{ss}";
                      yearMonth: "{yyyy}{mm}";
                      yearMonthDay: "{ymd}";
                      yearWeek: "{yow}{woy}";
                  },
              >,
              string,
              string,
          >;
          LIMIT: Readonly<{ get maxTempo(): bigint; get minTempo(): bigint }>;
          LOCALE: Readonly<Record<string, Record<string, any>>>;
          MODE: EnumifyType<{ Auto: "auto"; Defer: "defer"; Strict: "strict" }>;
          MONTH: EnumifyType<
              {
                  Apr: 4;
                  Aug: 8;
                  Dec: 12;
                  Feb: 2;
                  Jan: 1;
                  Jul: 7;
                  Jun: 6;
                  Mar: 3;
                  May: 5;
                  Nov: 11;
                  Oct: 10;
                  Sep: 9;
              },
          >;
          MONTH_DAY: Readonly<
              {
                  layouts: readonly [
                      readonly ["dayMonthYearShort", "monthDayYearShort"],
                      readonly ["dayMonthYear", "monthDayYear"],
                  ];
                  locales: readonly ["en-US", "en-AS"];
                  timezones: {
                      "en-AS": readonly ["Pacific/Pago_Pago"];
                      "en-US": readonly [
                          "America/Adak",
                          "America/Anchorage",
                          "America/Boise",
                          "America/Chicago",
                          "America/Denver",
                          "America/Detroit",
                          "America/Indiana/Indianapolis",
                          "America/Indiana/Knox",
                          "America/Indiana/Marengo",
                          "America/Indiana/Petersburg",
                          "America/Indiana/Tell_City",
                          "America/Indiana/Vevay",
                          "America/Indiana/Vincennes",
                          "America/Indiana/Winamac",
                          "America/Indianapolis",
                          "America/Juneau",
                          "America/Kentucky/Louisville",
                          "America/Kentucky/Monticello",
                          "America/Los_Angeles",
                          "America/Louisville",
                          "America/Menominee",
                          "America/Metlakatla",
                          "America/New_York",
                          "America/Nome",
                          "America/North_Dakota/Beulah",
                          "America/North_Dakota/Center",
                          "America/North_Dakota/New_Salem",
                          "America/Phoenix",
                          "America/Sitka",
                          "America/Yakutat",
                          "Pacific/Honolulu",
                          "US/Aleutian",
                          "US/Alaska",
                          "US/Arizona",
                          "US/Central",
                          "US/Eastern",
                          "US/Mountain",
                          "US/Pacific",
                      ];
                  };
              },
          >;
          MONTHS: EnumifyType<
              {
                  April: 4;
                  August: 8;
                  December: 12;
                  February: 2;
                  January: 1;
                  July: 7;
                  June: 6;
                  March: 3;
                  May: 5;
                  November: 11;
                  October: 10;
                  September: 9;
              },
          >;
          MUTATION: EnumifyType<
              Index<
                  readonly [
                      "yy",
                      "mm",
                      "wy",
                      "ww",
                      "woy",
                      "dd",
                      "hh",
                      "mi",
                      "ss",
                      "ms",
                      "us",
                      "ns",
                      "yw",
                      "yow",
                      "isoYear",
                      "isoyear",
                      "isoWeek",
                      "isoweek",
                      "event",
                      "period",
                      "clock",
                      "time",
                      "date",
                      "start",
                      "mid",
                      "end",
                  ],
              >,
          >;
          NUMBER: Extend<
              EnumifyType<
                  {
                      eight: 8;
                      five: 5;
                      four: 4;
                      nine: 9;
                      one: 1;
                      seven: 7;
                      six: 6;
                      ten: 10;
                      three: 3;
                      two: 2;
                      zero: 0;
                  },
              >,
              string,
              number,
          >;
          ORDINAL: Extend<
              EnumifyType<
                  {
                      current: 0;
                      eighth: 8;
                      fifth: 5;
                      first: 1;
                      fourth: 4;
                      last: -1;
                      ninth: 9;
                      second: 2;
                      seventh: 7;
                      sixth: 6;
                      tenth: 10;
                      third: 3;
                  },
              >,
              string,
              number,
          >;
          PARSE: EnumifyType<
              Index<
                  readonly [
                      "monthDay",
                      "planner",
                      "layoutOrder",
                      "preFilter",
                      "mode",
                      "pivot",
                      "snippet",
                      "layout",
                      "event",
                      "period",
                      "anchor",
                  ],
              >,
          >;
          SEASON: EnumifyType<
              {
                  Autumn: "autumn";
                  Spring: "spring";
                  Summer: "summer";
                  Winter: "winter";
              },
          >;
          TIMEZONE: Extend<
              Readonly<
                  {
                      acdt: "Australia/Adelaide";
                      acst: "Australia/Adelaide";
                      aedt: "Australia/Sydney";
                      aest: "Australia/Sydney";
                      awst: "Australia/Perth";
                      cdt: "America/Chicago";
                      cest: "Europe/Paris";
                      cet: "Europe/Paris";
                      cst: "America/Chicago";
                      edt: "America/New_York";
                      eest: "Europe/Helsinki";
                      eet: "Europe/Helsinki";
                      est: "America/New_York";
                      gmt: "UTC";
                      ist: "Asia/Kolkata";
                      jst: "Asia/Tokyo";
                      mdt: "America/Denver";
                      mst: "America/Denver";
                      npt: "Asia/Kathmandu";
                      nzdt: "Pacific/Auckland";
                      nzst: "Pacific/Auckland";
                      nzt: "Pacific/Auckland";
                      pdt: "America/Los_Angeles";
                      pst: "America/Los_Angeles";
                      utc: "UTC";
                  },
              >,
              string,
              string,
          >;
          WEEKDAY: EnumifyType<
              { Fri: 5; Mon: 1; Sat: 6; Sun: 7; Thu: 4; Tue: 2; Wed: 3 },
          >;
          WEEKDAYS: EnumifyType<
              {
                  Friday: 5;
                  Monday: 1;
                  Saturday: 6;
                  Sunday: 7;
                  Thursday: 4;
                  Tuesday: 2;
                  Wednesday: 3;
              },
          >;
          ZONED_DATE_TIME: EnumifyType<
              Index<
                  readonly [
                      "value",
                      "timeZoneId",
                      "calendarId",
                      "monthCode",
                      "offset",
                      "timeZone",
                      "calendar",
                      "year",
                      "month",
                      "day",
                      "hour",
                      "minute",
                      "second",
                      "yy",
                      "mm",
                      "wy",
                      "ww",
                      "woy",
                      "dd",
                      "hh",
                      "mi",
                      "ss",
                      "ms",
                      "us",
                      "ns",
                  ],
              >,
          >;
      }

      Live registry enumerations

      Returns {
          CACHE: EnumifyType<{ Off: false; On: true; Refresh: "refresh" }>;
          COMPASS: Extend<
              EnumifyType<
                  {
                      East: "east";
                      Equator: "equator";
                      North: "north";
                      South: "south";
                      West: "west";
                  },
              >,
              string,
              string,
          >;
          CONFIG: EnumifyType<
              Index<
                  readonly [
                      "config",
                      "parse",
                      "value",
                      "intl",
                      "localeInfo",
                      "store",
                      "discovery",
                      "debug",
                      "catch",
                      "silent",
                      "timeZone",
                      "calendar",
                      "locale",
                      "sphere",
                      "geo",
                      "latitude",
                      "lat",
                      "longitude",
                      "lng",
                      "timeStamp",
                      "registry",
                      "plugins",
                      "extends",
                      "cache",
                  ],
              >,
          >;
          DURATION: EnumifyType<
              {
                  day: 86400;
                  hour: 3600;
                  microsecond: 0.000001;
                  millisecond: 0.001;
                  minute: 60;
                  month: 2628000;
                  nanosecond: 1e-9;
                  second: 1;
                  week: 604800;
                  year: 31536000;
              },
          >;
          DURATIONS: EnumifyType<
              {
                  days: 86400000;
                  hours: 3600000;
                  microseconds: 0.001;
                  milliseconds: 1;
                  minutes: 60000;
                  months: 2628000000;
                  nanoseconds: 0.000001;
                  seconds: 1000;
                  weeks: 604800000;
                  years: 31536000000;
              },
          >;
          ELEMENT: EnumifyType<
              {
                  dd: "day";
                  hh: "hour";
                  mi: "minute";
                  mm: "month";
                  ms: "millisecond";
                  ns: "nanosecond";
                  ss: "second";
                  us: "microsecond";
                  woy: "week";
                  ww: "week";
                  yy: "year";
              },
          >;
          Enum: Readonly<
              {
                  extend: {
                      <T extends Property<any>, const E extends readonly any[]>(
                          enumObj: T,
                          list: E,
                          frozen?: boolean,
                      ): wrap<Omit<T, keyof Index<E>> & Index<E>>;
                      <T extends Property<any>, const E extends Property<any>>(
                          enumObj: T,
                          list: E,
                          frozen?: boolean,
                      ): wrap<Omit<T, keyof E> & E>;
                  };
                  from: {};
                  isEnum: <T extends Property<any> = any>(val: unknown) => val is wrap<T>;
                  merge: <const T extends readonly Property<any>[]>(
                      ...sources: T,
                  ) => wrap<MergeSources<T>>;
                  "[hasInstance]"(instance: any): boolean;
                  count<T extends Property<any>>(enumObj: T): number;
                  entries<T extends Property<any>>(
                      enumObj: T,
                  ): readonly (readonly [KeyOf<T>, ValueOf<T>])[];
                  get<T extends Property<any>>(
                      enumObj: T,
                      key: string | number | symbol | KeyOf<T>,
                  ): ValueOf<T> | undefined;
                  has<T extends Property<any>>(
                      enumObj: T,
                      key: string | number | symbol | KeyOf<T>,
                  ): key is KeyOf<T>;
                  hasOwn<T extends Property<any>>(
                      enumObj: T,
                      key: string | number | symbol | KeyOf<T>,
                  ): key is KeyOf<T>;
                  includes<T extends Property<any>>(enumObj: T, search: any): boolean;
                  invert<T extends Property<any>>(enumObj: T): Readonly<Invert<T>>;
                  keyOf<T extends Property<any>>(
                      enumObj: T,
                      search: any,
                  ): KeyOf<T> | undefined;
                  keys<T extends Property<any>>(enumObj: T): readonly KeyOf<T>[];
                  values<T extends Property<any>>(enumObj: T): readonly ValueOf<T>[];
              },
          >;
          FORMAT: Extend<
              EnumifyType<
                  {
                      date: "{yyyy}-{mm}-{dd}";
                      dayDate: "{dd}-{mmm}-{yyyy}";
                      dayMonth: "{dd}-{mmm}";
                      dayTime: "{dd}-{mmm}-{yyyy} {hh}:{mi}:{ss}";
                      display: "{www}, {dd} {mmm} {yyyy}";
                      logStamp: "{ymd}T{hms}.{ff}";
                      sortTime: "{yyyy}-{mm}-{dd} {hh}:{mi}:{ss}";
                      time: "{hh}:{mi}:{ss}";
                      weekDate: "{www}, {yyyy}-{mmm}-{dd}";
                      weekStamp: "{www}, {yyyy}-{mmm}-{dd} {hh}:{mi}:{ss}.{ff}";
                      weekTime: "{www}, {yyyy}-{mmm}-{dd} {hh}:{mi}:{ss}";
                      yearMonth: "{yyyy}{mm}";
                      yearMonthDay: "{ymd}";
                      yearWeek: "{yow}{woy}";
                  },
              >,
              string,
              string,
          >;
          LIMIT: Readonly<{ get maxTempo(): bigint; get minTempo(): bigint }>;
          LOCALE: Readonly<Record<string, Record<string, any>>>;
          MODE: EnumifyType<{ Auto: "auto"; Defer: "defer"; Strict: "strict" }>;
          MONTH: EnumifyType<
              {
                  Apr: 4;
                  Aug: 8;
                  Dec: 12;
                  Feb: 2;
                  Jan: 1;
                  Jul: 7;
                  Jun: 6;
                  Mar: 3;
                  May: 5;
                  Nov: 11;
                  Oct: 10;
                  Sep: 9;
              },
          >;
          MONTH_DAY: Readonly<
              {
                  layouts: readonly [
                      readonly ["dayMonthYearShort", "monthDayYearShort"],
                      readonly ["dayMonthYear", "monthDayYear"],
                  ];
                  locales: readonly ["en-US", "en-AS"];
                  timezones: {
                      "en-AS": readonly ["Pacific/Pago_Pago"];
                      "en-US": readonly [
                          "America/Adak",
                          "America/Anchorage",
                          "America/Boise",
                          "America/Chicago",
                          "America/Denver",
                          "America/Detroit",
                          "America/Indiana/Indianapolis",
                          "America/Indiana/Knox",
                          "America/Indiana/Marengo",
                          "America/Indiana/Petersburg",
                          "America/Indiana/Tell_City",
                          "America/Indiana/Vevay",
                          "America/Indiana/Vincennes",
                          "America/Indiana/Winamac",
                          "America/Indianapolis",
                          "America/Juneau",
                          "America/Kentucky/Louisville",
                          "America/Kentucky/Monticello",
                          "America/Los_Angeles",
                          "America/Louisville",
                          "America/Menominee",
                          "America/Metlakatla",
                          "America/New_York",
                          "America/Nome",
                          "America/North_Dakota/Beulah",
                          "America/North_Dakota/Center",
                          "America/North_Dakota/New_Salem",
                          "America/Phoenix",
                          "America/Sitka",
                          "America/Yakutat",
                          "Pacific/Honolulu",
                          "US/Aleutian",
                          "US/Alaska",
                          "US/Arizona",
                          "US/Central",
                          "US/Eastern",
                          "US/Mountain",
                          "US/Pacific",
                      ];
                  };
              },
          >;
          MONTHS: EnumifyType<
              {
                  April: 4;
                  August: 8;
                  December: 12;
                  February: 2;
                  January: 1;
                  July: 7;
                  June: 6;
                  March: 3;
                  May: 5;
                  November: 11;
                  October: 10;
                  September: 9;
              },
          >;
          MUTATION: EnumifyType<
              Index<
                  readonly [
                      "yy",
                      "mm",
                      "wy",
                      "ww",
                      "woy",
                      "dd",
                      "hh",
                      "mi",
                      "ss",
                      "ms",
                      "us",
                      "ns",
                      "yw",
                      "yow",
                      "isoYear",
                      "isoyear",
                      "isoWeek",
                      "isoweek",
                      "event",
                      "period",
                      "clock",
                      "time",
                      "date",
                      "start",
                      "mid",
                      "end",
                  ],
              >,
          >;
          NUMBER: Extend<
              EnumifyType<
                  {
                      eight: 8;
                      five: 5;
                      four: 4;
                      nine: 9;
                      one: 1;
                      seven: 7;
                      six: 6;
                      ten: 10;
                      three: 3;
                      two: 2;
                      zero: 0;
                  },
              >,
              string,
              number,
          >;
          ORDINAL: Extend<
              EnumifyType<
                  {
                      current: 0;
                      eighth: 8;
                      fifth: 5;
                      first: 1;
                      fourth: 4;
                      last: -1;
                      ninth: 9;
                      second: 2;
                      seventh: 7;
                      sixth: 6;
                      tenth: 10;
                      third: 3;
                  },
              >,
              string,
              number,
          >;
          PARSE: EnumifyType<
              Index<
                  readonly [
                      "monthDay",
                      "planner",
                      "layoutOrder",
                      "preFilter",
                      "mode",
                      "pivot",
                      "snippet",
                      "layout",
                      "event",
                      "period",
                      "anchor",
                  ],
              >,
          >;
          SEASON: EnumifyType<
              {
                  Autumn: "autumn";
                  Spring: "spring";
                  Summer: "summer";
                  Winter: "winter";
              },
          >;
          TIMEZONE: Extend<
              Readonly<
                  {
                      acdt: "Australia/Adelaide";
                      acst: "Australia/Adelaide";
                      aedt: "Australia/Sydney";
                      aest: "Australia/Sydney";
                      awst: "Australia/Perth";
                      cdt: "America/Chicago";
                      cest: "Europe/Paris";
                      cet: "Europe/Paris";
                      cst: "America/Chicago";
                      edt: "America/New_York";
                      eest: "Europe/Helsinki";
                      eet: "Europe/Helsinki";
                      est: "America/New_York";
                      gmt: "UTC";
                      ist: "Asia/Kolkata";
                      jst: "Asia/Tokyo";
                      mdt: "America/Denver";
                      mst: "America/Denver";
                      npt: "Asia/Kathmandu";
                      nzdt: "Pacific/Auckland";
                      nzst: "Pacific/Auckland";
                      nzt: "Pacific/Auckland";
                      pdt: "America/Los_Angeles";
                      pst: "America/Los_Angeles";
                      utc: "UTC";
                  },
              >,
              string,
              string,
          >;
          WEEKDAY: EnumifyType<
              { Fri: 5; Mon: 1; Sat: 6; Sun: 7; Thu: 4; Tue: 2; Wed: 3 },
          >;
          WEEKDAYS: EnumifyType<
              {
                  Friday: 5;
                  Monday: 1;
                  Saturday: 6;
                  Sunday: 7;
                  Thursday: 4;
                  Tuesday: 2;
                  Wednesday: 3;
              },
          >;
          ZONED_DATE_TIME: EnumifyType<
              Index<
                  readonly [
                      "value",
                      "timeZoneId",
                      "calendarId",
                      "monthCode",
                      "offset",
                      "timeZone",
                      "calendar",
                      "year",
                      "month",
                      "day",
                      "hour",
                      "minute",
                      "second",
                      "yy",
                      "mm",
                      "wy",
                      "ww",
                      "woy",
                      "dd",
                      "hh",
                      "mi",
                      "ss",
                      "ms",
                      "us",
                      "ns",
                  ],
              >,
          >;
      }

      • CACHE: EnumifyType<{ Off: false; On: true; Refresh: "refresh" }>

        cache operation modes

      • COMPASS: Extend<
            EnumifyType<
                {
                    East: "east";
                    Equator: "equator";
                    North: "north";
                    South: "south";
                    West: "west";
                },
            >,
            string,
            string,
        >

        cardinal directions

      • CONFIG: EnumifyType<
            Index<
                readonly [
                    "config",
                    "parse",
                    "value",
                    "intl",
                    "localeInfo",
                    "store",
                    "discovery",
                    "debug",
                    "catch",
                    "silent",
                    "timeZone",
                    "calendar",
                    "locale",
                    "sphere",
                    "geo",
                    "latitude",
                    "lat",
                    "longitude",
                    "lng",
                    "timeStamp",
                    "registry",
                    "plugins",
                    "extends",
                    "cache",
                ],
            >,
        >
      • DURATION: EnumifyType<
            {
                day: 86400;
                hour: 3600;
                microsecond: 0.000001;
                millisecond: 0.001;
                minute: 60;
                month: 2628000;
                nanosecond: 1e-9;
                second: 1;
                week: 604800;
                year: 31536000;
            },
        >

        number of seconds in a time unit

      • DURATIONS: EnumifyType<
            {
                days: 86400000;
                hours: 3600000;
                microseconds: 0.001;
                milliseconds: 1;
                minutes: 60000;
                months: 2628000000;
                nanoseconds: 0.000001;
                seconds: 1000;
                weeks: 604800000;
                years: 31536000000;
            },
        >

        number of milliseconds in a time unit

      • ELEMENT: EnumifyType<
            {
                dd: "day";
                hh: "hour";
                mi: "minute";
                mm: "month";
                ms: "millisecond";
                ns: "nanosecond";
                ss: "second";
                us: "microsecond";
                woy: "week";
                ww: "week";
                yy: "year";
            },
        >
      • Enum: Readonly<
            {
                extend: {
                    <T extends Property<any>, const E extends readonly any[]>(
                        enumObj: T,
                        list: E,
                        frozen?: boolean,
                    ): wrap<Omit<T, keyof Index<E>> & Index<E>>;
                    <T extends Property<any>, const E extends Property<any>>(
                        enumObj: T,
                        list: E,
                        frozen?: boolean,
                    ): wrap<Omit<T, keyof E> & E>;
                };
                from: {};
                isEnum: <T extends Property<any> = any>(val: unknown) => val is wrap<T>;
                merge: <const T extends readonly Property<any>[]>(
                    ...sources: T,
                ) => wrap<MergeSources<T>>;
                "[hasInstance]"(instance: any): boolean;
                count<T extends Property<any>>(enumObj: T): number;
                entries<T extends Property<any>>(
                    enumObj: T,
                ): readonly (readonly [KeyOf<T>, ValueOf<T>])[];
                get<T extends Property<any>>(
                    enumObj: T,
                    key: string | number | symbol | KeyOf<T>,
                ): ValueOf<T> | undefined;
                has<T extends Property<any>>(
                    enumObj: T,
                    key: string | number | symbol | KeyOf<T>,
                ): key is KeyOf<T>;
                hasOwn<T extends Property<any>>(
                    enumObj: T,
                    key: string | number | symbol | KeyOf<T>,
                ): key is KeyOf<T>;
                includes<T extends Property<any>>(enumObj: T, search: any): boolean;
                invert<T extends Property<any>>(enumObj: T): Readonly<Invert<T>>;
                keyOf<T extends Property<any>>(
                    enumObj: T,
                    search: any,
                ): KeyOf<T> | undefined;
                keys<T extends Property<any>>(enumObj: T): readonly KeyOf<T>[];
                values<T extends Property<any>>(enumObj: T): readonly ValueOf<T>[];
            },
        >
      • FORMAT: Extend<
            EnumifyType<
                {
                    date: "{yyyy}-{mm}-{dd}";
                    dayDate: "{dd}-{mmm}-{yyyy}";
                    dayMonth: "{dd}-{mmm}";
                    dayTime: "{dd}-{mmm}-{yyyy} {hh}:{mi}:{ss}";
                    display: "{www}, {dd} {mmm} {yyyy}";
                    logStamp: "{ymd}T{hms}.{ff}";
                    sortTime: "{yyyy}-{mm}-{dd} {hh}:{mi}:{ss}";
                    time: "{hh}:{mi}:{ss}";
                    weekDate: "{www}, {yyyy}-{mmm}-{dd}";
                    weekStamp: "{www}, {yyyy}-{mmm}-{dd} {hh}:{mi}:{ss}.{ff}";
                    weekTime: "{www}, {yyyy}-{mmm}-{dd} {hh}:{mi}:{ss}";
                    yearMonth: "{yyyy}{mm}";
                    yearMonthDay: "{ymd}";
                    yearWeek: "{yow}{woy}";
                },
            >,
            string,
            string,
        >

        common format aliases

      • LIMIT: Readonly<{ get maxTempo(): bigint; get minTempo(): bigint }>

        Temporal limits (min/max date bounds)

      • LOCALE: Readonly<Record<string, Record<string, any>>>

        localized dictionary translations

      • MODE: EnumifyType<{ Auto: "auto"; Defer: "defer"; Strict: "strict" }>

        initialization strategies

      • MONTH: EnumifyType<
            {
                Apr: 4;
                Aug: 8;
                Dec: 12;
                Feb: 2;
                Jan: 1;
                Jul: 7;
                Jun: 6;
                Mar: 3;
                May: 5;
                Nov: 11;
                Oct: 10;
                Sep: 9;
            },
        >

        Gregorian calendar months (short-form)

      • MONTH_DAY: Readonly<
            {
                layouts: readonly [
                    readonly ["dayMonthYearShort", "monthDayYearShort"],
                    readonly ["dayMonthYear", "monthDayYear"],
                ];
                locales: readonly ["en-US", "en-AS"];
                timezones: {
                    "en-AS": readonly ["Pacific/Pago_Pago"];
                    "en-US": readonly [
                        "America/Adak",
                        "America/Anchorage",
                        "America/Boise",
                        "America/Chicago",
                        "America/Denver",
                        "America/Detroit",
                        "America/Indiana/Indianapolis",
                        "America/Indiana/Knox",
                        "America/Indiana/Marengo",
                        "America/Indiana/Petersburg",
                        "America/Indiana/Tell_City",
                        "America/Indiana/Vevay",
                        "America/Indiana/Vincennes",
                        "America/Indiana/Winamac",
                        "America/Indianapolis",
                        "America/Juneau",
                        "America/Kentucky/Louisville",
                        "America/Kentucky/Monticello",
                        "America/Los_Angeles",
                        "America/Louisville",
                        "America/Menominee",
                        "America/Metlakatla",
                        "America/New_York",
                        "America/Nome",
                        "America/North_Dakota/Beulah",
                        "America/North_Dakota/Center",
                        "America/North_Dakota/New_Salem",
                        "America/Phoenix",
                        "America/Sitka",
                        "America/Yakutat",
                        "Pacific/Honolulu",
                        "US/Aleutian",
                        "US/Alaska",
                        "US/Arizona",
                        "US/Central",
                        "US/Eastern",
                        "US/Mountain",
                        "US/Pacific",
                    ];
                };
            },
        >

        regional month-day-year parsing settings

      • MONTHS: EnumifyType<
            {
                April: 4;
                August: 8;
                December: 12;
                February: 2;
                January: 1;
                July: 7;
                June: 6;
                March: 3;
                May: 5;
                November: 11;
                October: 10;
                September: 9;
            },
        >

        Gregorian calendar months (long-form)

      • MUTATION: EnumifyType<
            Index<
                readonly [
                    "yy",
                    "mm",
                    "wy",
                    "ww",
                    "woy",
                    "dd",
                    "hh",
                    "mi",
                    "ss",
                    "ms",
                    "us",
                    "ns",
                    "yw",
                    "yow",
                    "isoYear",
                    "isoyear",
                    "isoWeek",
                    "isoweek",
                    "event",
                    "period",
                    "clock",
                    "time",
                    "date",
                    "start",
                    "mid",
                    "end",
                ],
            >,
        >
      • NUMBER: Extend<
            EnumifyType<
                {
                    eight: 8;
                    five: 5;
                    four: 4;
                    nine: 9;
                    one: 1;
                    seven: 7;
                    six: 6;
                    ten: 10;
                    three: 3;
                    two: 2;
                    zero: 0;
                },
            >,
            string,
            number,
        >

        number names (0-10)

      • ORDINAL: Extend<
            EnumifyType<
                {
                    current: 0;
                    eighth: 8;
                    fifth: 5;
                    first: 1;
                    fourth: 4;
                    last: -1;
                    ninth: 9;
                    second: 2;
                    seventh: 7;
                    sixth: 6;
                    tenth: 10;
                    third: 3;
                },
            >,
            string,
            number,
        >

        ordinal names

      • PARSE: EnumifyType<
            Index<
                readonly [
                    "monthDay",
                    "planner",
                    "layoutOrder",
                    "preFilter",
                    "mode",
                    "pivot",
                    "snippet",
                    "layout",
                    "event",
                    "period",
                    "anchor",
                ],
            >,
        >
      • SEASON: EnumifyType<
            {
                Autumn: "autumn";
                Spring: "spring";
                Summer: "summer";
                Winter: "winter";
            },
        >

        calendar seasons

      • TIMEZONE: Extend<
            Readonly<
                {
                    acdt: "Australia/Adelaide";
                    acst: "Australia/Adelaide";
                    aedt: "Australia/Sydney";
                    aest: "Australia/Sydney";
                    awst: "Australia/Perth";
                    cdt: "America/Chicago";
                    cest: "Europe/Paris";
                    cet: "Europe/Paris";
                    cst: "America/Chicago";
                    edt: "America/New_York";
                    eest: "Europe/Helsinki";
                    eet: "Europe/Helsinki";
                    est: "America/New_York";
                    gmt: "UTC";
                    ist: "Asia/Kolkata";
                    jst: "Asia/Tokyo";
                    mdt: "America/Denver";
                    mst: "America/Denver";
                    npt: "Asia/Kathmandu";
                    nzdt: "Pacific/Auckland";
                    nzst: "Pacific/Auckland";
                    nzt: "Pacific/Auckland";
                    pdt: "America/Los_Angeles";
                    pst: "America/Los_Angeles";
                    utc: "UTC";
                },
            >,
            string,
            string,
        >

        common time-zone aliases

      • WEEKDAY: EnumifyType<{ Fri: 5; Mon: 1; Sat: 6; Sun: 7; Thu: 4; Tue: 2; Wed: 3 }>

        Gregorian calendar week-days (short-form)

      • WEEKDAYS: EnumifyType<
            {
                Friday: 5;
                Monday: 1;
                Saturday: 6;
                Sunday: 7;
                Thursday: 4;
                Tuesday: 2;
                Wednesday: 3;
            },
        >

        Gregorian calendar week-days (long-form)

      • ZONED_DATE_TIME: EnumifyType<
            Index<
                readonly [
                    "value",
                    "timeZoneId",
                    "calendarId",
                    "monthCode",
                    "offset",
                    "timeZone",
                    "calendar",
                    "year",
                    "month",
                    "day",
                    "hour",
                    "minute",
                    "second",
                    "yy",
                    "mm",
                    "wy",
                    "ww",
                    "woy",
                    "dd",
                    "hh",
                    "mi",
                    "ss",
                    "ms",
                    "us",
                    "ns",
                ],
            >,
        >
    • get epoch(): Readonly<{ ms: number; ns: bigint; ss: number; us: number }>

      static units since Unix epoch

      Returns Readonly<{ ms: number; ns: bigint; ss: number; us: number }>

    • get intl(): TempoIntlNamespace

      Internationalization namespace (info, locale, and cultural metadata) for the global locale

      Returns TempoIntlNamespace

    • get options(): any

      Retrieves the merged options for this Tempo class, combining defaults, storage, discovery, and config.

      Returns any

      The complete options object for Tempo initialization

    • get parse(): SecureObject<
          {
              anchor?: ZonedDateTime;
              event: {
                  christmas: "25 Dec";
                  "christmas ?eve": "24 Dec";
                  fortnight: (this: AliasContext) => AliasContext;
                  "new.?years? ?eve": "31 Dec";
                  "new.?years?(?: ?day)?": "01 Jan";
                  now: (this: AliasContext) => AliasContext;
                  ny: "01 Jan";
                  nye: "31 Dec";
                  today: (this: AliasContext) => ZonedDateTime;
                  tomorrow: (this: AliasContext) => AliasContext;
                  xmas: "25 Dec";
                  "xmas ?eve": "24 Dec";
                  yesterday: (this: AliasContext) => AliasContext;
                  readonly [key: string]: string | Function;
              };
              ignore: { readonly [key: string]: string };
              isAnchored?: boolean;
              layout: { readonly [key: symbol]: string };
              mode: "auto" | "strict" | "defer";
              monthDay: MonthDay;
              pattern: Registry;
              period: {
                  "after[ -]?noon": "3:00pm";
                  evening: "18:00";
                  "half[ -]?hour": (this: AliasContext) => string;
                  "mid[ -]?day": "12:00";
                  "mid[ -]?morning": "10:00";
                  "mid[ -]?night": "24:00";
                  morning: "8:00";
                  night: "20:00";
                  noon: "12:00";
                  readonly [key: string]: string | Function;
              };
              pivot: number;
              planner: { layoutOrder: (string | symbol)[]; preFilter: boolean };
              result: Match[];
              snippet: { readonly [key: symbol]: RegExp };
              token: Extend;
          },
      >

      configuration governing the static 'rules' used when parsing t.DateTime argument

      Returns SecureObject<
          {
              anchor?: ZonedDateTime;
              event: {
                  christmas: "25 Dec";
                  "christmas ?eve": "24 Dec";
                  fortnight: (this: AliasContext) => AliasContext;
                  "new.?years? ?eve": "31 Dec";
                  "new.?years?(?: ?day)?": "01 Jan";
                  now: (this: AliasContext) => AliasContext;
                  ny: "01 Jan";
                  nye: "31 Dec";
                  today: (this: AliasContext) => ZonedDateTime;
                  tomorrow: (this: AliasContext) => AliasContext;
                  xmas: "25 Dec";
                  "xmas ?eve": "24 Dec";
                  yesterday: (this: AliasContext) => AliasContext;
                  readonly [key: string]: string | Function;
              };
              ignore: { readonly [key: string]: string };
              isAnchored?: boolean;
              layout: { readonly [key: symbol]: string };
              mode: "auto" | "strict" | "defer";
              monthDay: MonthDay;
              pattern: Registry;
              period: {
                  "after[ -]?noon": "3:00pm";
                  evening: "18:00";
                  "half[ -]?hour": (this: AliasContext) => string;
                  "mid[ -]?day": "12:00";
                  "mid[ -]?morning": "10:00";
                  "mid[ -]?night": "24:00";
                  morning: "8:00";
                  night: "20:00";
                  noon: "12:00";
                  readonly [key: string]: string | Function;
              };
              pivot: number;
              planner: { layoutOrder: (string | symbol)[]; preFilter: boolean };
              result: Match[];
              snippet: { readonly [key: symbol]: RegExp };
              token: Extend;
          },
      >

    • get registry(): Readonly<
          {
              dialects?: Readonly<Record<string, any>>;
              formats: EnumifyType;
              locales: Readonly<Record<string, Readonly<Record<string, any>>>>;
              modifiers?: Readonly<Record<string, string | readonly string[]>>;
              numbers?: Readonly<Record<string, number>>;
              ordinals?: Readonly<Record<string, number>>;
              tokens?: Readonly<Record<string, TokenEvaluator>>;
          },
      >

      static Tempo.registry

      Returns Readonly<
          {
              dialects?: Readonly<Record<string, any>>;
              formats: EnumifyType;
              locales: Readonly<Record<string, Readonly<Record<string, any>>>>;
              modifiers?: Readonly<Record<string, string | readonly string[]>>;
              numbers?: Readonly<Record<string, number>>;
              ordinals?: Readonly<Record<string, number>>;
              tokens?: Readonly<Record<string, TokenEvaluator>>;
          },
      >

    • get versions(): Readonly<Record<string, string>>

      the active versions of Tempo and any registered plugins or modules

      Returns Readonly<Record<string, string>>

    • get weakCache(): SecureObject<
          SecureObject<
              {
                  get isWeakCache(): boolean;
                  clear(): void;
                  delete(key: string): boolean;
                  get(key: string): any;
                  getOrSet<V extends WeakKey>(key: string, factory: (key: string) => V): V;
                  has(key: string): boolean;
                  set<V extends WeakKey>(
                      key: string,
                      value: V,
                  ): { readonly get: (key: string) => any; readonly has: (key: string) => boolean; readonly set: <V extends WeakKey>(key: string, value: V) => ...; readonly getOrSet: <V extends WeakKey>(key: string, factory: (key: string) => V) => V; readonly delete: (key: string) => boolean; readonly clear: () => void; readonly isWeakC...;
              },
          >,
      >

      weakly-retained object cache facade for domain objects, ASTs, and plugin instances

      Returns SecureObject<
          SecureObject<
              {
                  get isWeakCache(): boolean;
                  clear(): void;
                  delete(key: string): boolean;
                  get(key: string): any;
                  getOrSet<V extends WeakKey>(key: string, factory: (key: string) => V): V;
                  has(key: string): boolean;
                  set<V extends WeakKey>(
                      key: string,
                      value: V,
                  ): { readonly get: (key: string) => any; readonly has: (key: string) => boolean; readonly set: <V extends WeakKey>(key: string, value: V) => ...; readonly getOrSet: <V extends WeakKey>(key: string, factory: (key: string) => V) => V; readonly delete: (key: string) => boolean; readonly clear: () => void; readonly isWeakC...;
              },
          >,
      >

    • iterate over instance formats

      Returns ArrayIterator<[string, string | undefined]>

    • allow for auto-convert of Tempo to BigInt, Number or String

      Parameters

      • Optionalhint: "string" | "number" | "default"

      Returns string | number | bigint

    • checks whether this Tempo matches now at the requested unit or options precision.

      Parameters

      • unitOrOptions: CompareUnit | CompareOptions

      Returns boolean

    • checks whether this Tempo matches another date-time value (at full instant or optional unit precision).

      Parameters

      • Optionalother: Options | DateTime
      • Optionalunit: CompareUnit | CompareOptions

      Returns boolean

    • apply a custom format.

      Parameters

      • Optionalfmt: any
      • Optionaloptions: any

      Returns string

    • applies a format to the instance.

      Parameters

      • options: FormatOptions

      Returns string

    • Applies a format to the instance. Format strings are validated at compile time — any unrecognised {token} will produce an IDE error showing the bad token name.

      Type Parameters

      • S extends string

      Parameters

      • fmt: string extends S ? S : string extends ValidateFormat<S> ? S : ValidateFormat<S>
      • Optionaloptions: any

      Returns string

      TempoFormatTokens to extend the token set.

    • applies a format to the instance (zero-argument — returns a pre-built format proxy).

      Returns string

    • Computes the next occurrence of a recurrence rule (RRULE string) after this instant.

      Parameters

      • rrule: string | { rrule: string }

        The RFC 5545 RRULE string or object with an rrule property

      Returns Tempo | null

      A new Tempo instance at the next occurrence, or null if no further occurrences exist

    • time elapsed since another date-time

      Parameters

      • OptionaldateTimeOrOpts: Options | DateTime
      • Optionalopts: Options

      Returns Duration

    • time elapsed since another date-time

      Parameters

      • unit: Unit
      • Optionalopts: Options

      Returns number

    • time elapsed since another date-time

      Parameters

      • dateTimeOrOpts: Options | DateTime
      • unit: Unit

      Returns number

    • time elapsed since (with unit)

      Parameters

      • until: Until
      • Optionalopts: Options

      Returns string

    • time elapsed since another date-time (with unit)

      Parameters

      • dateTimeOrOpts: Options | DateTime
      • until: Until

      Returns string

    • time elapsed since another date-time (w'out unit)

      Parameters

      • OptionaldateTimeOrOpts: Options | DateTime
      • Optionalopts: Options

      Returns string

    • time elapsed since another date-time

      Parameters

      • OptionaloptsOrDate: any
      • OptionaloptsOrUntil: any

      Returns string

    • Custom JSON serialization for JSON.stringify.

      Returns {
          calendar: CalendarLike;
          catch?: boolean;
          debug?: DebugLevel;
          dialect?: Evaluable<string>;
          discovery?: string | symbol | Discovery;
          format?: Evaluable<string | readonly string[]>;
          geo?: Readonly<GeoConfig>;
          intl?: Readonly<IntlOptions>;
          locale: string | readonly string[];
          mode?: "auto" | "strict" | "defer";
          planner?: Readonly<PlannerOptions>;
          pluginOptions?: Record<string, any>;
          plugins?: any;
          registry: Readonly<
              {
                  dialects?: Readonly<Record<string, any>>;
                  formats: FormatRegistry;
                  locales: Readonly<Record<string, Readonly<Record<string, any>>>>;
                  modifiers?: Readonly<Record<string, string | readonly string[]>>;
                  numbers?: Readonly<Record<string, number>>;
                  ordinals?: Readonly<Record<string, number>>;
                  tokens?: Readonly<Record<string, TokenEvaluator>>;
              },
          >;
          scope: "global"
          | "local";
          silent?: boolean;
          sphere: COMPASS | undefined;
          store?: string;
          timeStamp?: TimeStamp;
          timeZone: TimeZoneLike;
          value: string;
      }

      • Readonlycalendar: CalendarLike

        Temporal calendar

      • Optionalcatch?: boolean

        catch or throw Errors

      • Optionaldebug?: DebugLevel

        additional console.log for tracking

      • Optionaldialect?: Evaluable<string>

        Format dialect or dynamic dialect resolver (e.g. 'ldml', 'strftime', 'moment')

      • Optionaldiscovery?: string | symbol | Discovery

        globalThis Discovery Symbol

      • Optionalformat?: Evaluable<string | readonly string[]>

        Format mask, array of format masks, or dynamic mask resolver

      • Optional Readonlygeo?: Readonly<GeoConfig>

        Geolocation coordinates configuration

      • Optional Readonlyintl?: Readonly<IntlOptions>

        internationalization configuration (relativeTime, etc.)

      • Readonlylocale: string | readonly string[]

        locale (e.g. en-AU)

      • Optionalmode?: "auto" | "strict" | "defer"

        initialization strategy ('auto'|'strict'|'defer')

      • Optional Readonlyplanner?: Readonly<PlannerOptions>

        parse planner configuration (layoutOrder, etc.)

      • OptionalpluginOptions?: Record<string, any>

        Plugin configuration defaults and dictionaries keyed by plugin name

      • Optionalplugins?: any

        Plugins or terms to extend onto Tempo.

        To provide configuration options or defaults for plugins, use pluginOptions instead.

      • Readonlyregistry: Readonly<
            {
                dialects?: Readonly<Record<string, any>>;
                formats: FormatRegistry;
                locales: Readonly<Record<string, Readonly<Record<string, any>>>>;
                modifiers?: Readonly<Record<string, string | readonly string[]>>;
                numbers?: Readonly<Record<string, number>>;
                ordinals?: Readonly<Record<string, number>>;
                tokens?: Readonly<Record<string, TokenEvaluator>>;
            },
        >

        custom data augmentation registries

      • Readonlyscope: "global" | "local"

        scope for configuration mutations

      • Optionalsilent?: boolean

        suppress console output during catch

      • Readonlysphere: COMPASS | undefined

        hemisphere for term.qtr or term.szn

      • Optionalstore?: string

        localStorage key

      • OptionaltimeStamp?: TimeStamp

        Precision to measure timestamps (ms | us)

      • ReadonlytimeZone: TimeZoneLike

        Temporal timeZone

      • value: string
    • time duration until another date-time

      Parameters

      • OptionaldateTimeOrOpts: Options | DateTime
      • Optionalopts: Options

      Returns Duration

    • time duration until another date-time

      Parameters

      • unit: Unit
      • Optionalopts: Options

      Returns number

    • time duration until another date-time

      Parameters

      • dateTimeOrOpts: Options | DateTime
      • unit: Unit

      Returns number

    • time duration until (returns Duration)

      Parameters

      • OptionaldateTimeOrOpts: Options | DateTime
      • Optionalopts: Options

      Returns Duration

    • time duration until (with unit, returns number)

      Parameters

      • unit: Unit
      • Optionalopts: Options

      Returns number

    • time duration until another date-time (with unit)

      Parameters

      • dateTimeOrOpts: Options | DateTime
      • unit: Unit

      Returns number

    • fallback: union of possible returns

      Parameters

      • OptionaloptsOrDate:
            | string
            | number
            | bigint
            | TempoBrand
            | ZonedDateTime
            | Instant
            | Options
            | PlainDate
            | PlainDateTime
            | PlainMonthDay
            | PlainYearMonth
            | Date
            | ZonedDateTimeLikeObject
            | ISOString
            | Tempo
            | PlainTime
            | Duration
            | DurationLikeObject
            | Options & { unit?: Unit }
            | null
      • OptionaloptsOrUntil: Options | Until

      Returns number | Duration

    • Automatically discovers and loads configuration from tempo.config.* before initializing the engine.

      Parameters

      • Optionaloptions: { configFile?: string; cwd?: string }

      Returns Promise<typeof Tempo>

    • Compares two Tempo instances or date-time values. Returns -1 (earlier), 0 (equal), or 1 (later). When unit (or { unit, timeZone, calendar, anchor }) is provided, compares at that calendar/time granularity (e.g. 'day', 'month', 'time').

      Parameters

      • Optionaltempo1: Options | DateTime
      • Optionaltempo2: Options | DateTime
      • Optionalunit: CompareUnit | CompareOptions

      Returns -1 | 0 | 1

    • Determines whether two Tempo instances or date-time values represent the same instant or matching unit boundary.

      Parameters

      • Optionaltempo1: Options | DateTime
      • Optionaltempo2: Options | DateTime
      • Optionalunit: CompareUnit | CompareOptions

      Returns boolean

    • 🏭 Sandbox Factory & Scoped Execution Mode

      1. Factory Mode: Derives a fresh, isolated Tempo subclass with its own configuration and registries. The returned class implements Disposable ([Symbol.dispose]()), allowing deterministic cleanup via using.

      2. Scoped Execution Mode: When provided a callback, derives an isolated sandbox, executes the callback, and automatically disposes the sandbox upon completion (supporting both synchronous and Promise returns).

      Parameters

      • Optionaloptions: Options

      Returns TempoSandbox

      // Factory mode with `using`
      {
      using sb = Tempo.extend({ discovery: 'test' });
      sb.use(MyPlugin);
      }

      // Scoped callback mode
      const result = Tempo.extend((sb) => {
      sb.use(MyPlugin);
      return new sb('2026-05-10').format();
      });
    • 🏭 Sandbox Factory & Scoped Execution Mode

      1. Factory Mode: Derives a fresh, isolated Tempo subclass with its own configuration and registries. The returned class implements Disposable ([Symbol.dispose]()), allowing deterministic cleanup via using.

      2. Scoped Execution Mode: When provided a callback, derives an isolated sandbox, executes the callback, and automatically disposes the sandbox upon completion (supporting both synchronous and Promise returns).

      Type Parameters

      • R

      Parameters

      • fn: (sandbox: TempoSandbox) => R

      Returns R

      // Factory mode with `using`
      {
      using sb = Tempo.extend({ discovery: 'test' });
      sb.use(MyPlugin);
      }

      // Scoped callback mode
      const result = Tempo.extend((sb) => {
      sb.use(MyPlugin);
      return new sb('2026-05-10').format();
      });
    • 🏭 Sandbox Factory & Scoped Execution Mode

      1. Factory Mode: Derives a fresh, isolated Tempo subclass with its own configuration and registries. The returned class implements Disposable ([Symbol.dispose]()), allowing deterministic cleanup via using.

      2. Scoped Execution Mode: When provided a callback, derives an isolated sandbox, executes the callback, and automatically disposes the sandbox upon completion (supporting both synchronous and Promise returns).

      Type Parameters

      • R

      Parameters

      • options: Options
      • fn: (sandbox: TempoSandbox) => R

      Returns R

      // Factory mode with `using`
      {
      using sb = Tempo.extend({ discovery: 'test' });
      sb.use(MyPlugin);
      }

      // Scoped callback mode
      const result = Tempo.extend((sb) => {
      sb.use(MyPlugin);
      return new sb('2026-05-10').format();
      });
    • Creates a new Tempo instance representing the current date and time.

      Parameters

      • Optionaloptions: Omit<Options, "value">

        Configuration options for this specific instance.

      Returns Tempo

    • translates {layout} into an anchored, case-insensitive RegExp.

      Parameters

      • layout: string | RegExp
      • Optionalsnippet: Extend<{ readonly [key: symbol]: RegExp }, symbol, RegExp>

      Returns RegExp

    • Register discovery configuration with an optional discovery symbol.

      Parameters

      • discovery: Discovery

        Discovery object defining options, formats, periods, or terms.

      • Optionalsymbol: symbol

        Optional symbol identifier under globalThis to attach discovery data.

      Returns typeof Tempo

    • Register an individual plugin or plugin factory.

      Type Parameters

      • T extends TempoPlugin = TempoPlugin
      • Opts = any

      Parameters

      • plugin: any

        The plugin function or definition to register.

      • Optionaloptions: Options

        Optional configuration for the plugin.

      Returns typeof Tempo

    • Register an array of plugins, terms, factories, or tuples.

      Parameters

      • plugins: any[]

        An array of plugins, terms, factories, or tuples to register.

      • Optionaloptions: Options

        Optional configuration for the plugins.

      Returns typeof Tempo

    • Register multiple plugins or term extensions.

      Parameters

      • ...args: any[]

        A plugin, term, or list of extensions to register.

      Returns typeof Tempo