Skip to content

Extends

  • BaseOptions

Properties

calendar

ts
calendar: CalendarLike;

Temporal calendar

Inherited from

ts
t.Internal.BaseOptions.calendar

catch

ts
catch: boolean | undefined;

catch or throw Errors

Inherited from

ts
t.Internal.BaseOptions.catch

debug

ts
debug: number | boolean | undefined;

additional console.log for tracking

Inherited from

ts
t.Internal.BaseOptions.debug

discovery

ts
discovery: string | symbol | Discovery;

globalThis Discovery Symbol

Inherited from

ts
t.Internal.BaseOptions.discovery

event

ts
event: 
  | Extend<{
  christmas: "25 Dec";
  christmas ?eve: "24 Dec";
  fortnight: (this) => Tempo;
  new.?years? ?eve: "31 Dec";
  new.?years?(?: ?day)?: "01 Jan";
  now: (this) => ZonedDateTime;
  ny: "01 Jan";
  nye: "31 Dec";
  today: (this) => ZonedDateTime;
  tomorrow: (this) => Tempo;
  xmas: "25 Dec";
  xmas ?eve: "24 Dec";
  yesterday: (this) => Tempo;
}, string, string | Function>
| RegistryOption<Logic>;

custom date aliases (events).

Inherited from

ts
t.Internal.BaseOptions.event

formats

ts
formats: Property<any>;

custom format strings to merge in the FORMAT enum

Inherited from

ts
t.Internal.BaseOptions.formats

ignore

ts
ignore: Ignore;

noise words to ignore during parsing.

Inherited from

ts
t.Internal.BaseOptions.ignore

intl?

ts
optional intl?: IntlOptions;

internationalization configuration (relativeTime, etc.)

Inherited from

ts
t.Internal.BaseOptions.intl

layout

ts
layout: 
  | Extend<{
[key: symbol]: string;
}, symbol, string>
| RegistryOption<Pattern>;

patterns to help parse value

Inherited from

ts
t.Internal.BaseOptions.layout

locale

ts
locale: string;

locale (e.g. en-AU)

Inherited from

ts
t.Internal.BaseOptions.locale

mode?

ts
optional mode?: "auto" | "strict" | "defer";

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

Inherited from

ts
t.Internal.BaseOptions.mode

monthDay

ts
monthDay: boolean | MonthDay;

regional date-parsing configuration

Inherited from

ts
t.Internal.BaseOptions.monthDay

period

ts
period: 
  | Extend<{
  after[ -]?noon: "3:00pm";
  evening: "18:00";
  half[ -]?hour: (this) => string;
  mid[ -]?day: "12:00";
  mid[ -]?morning: "10:00";
  mid[ -]?night: "24:00";
  morning: "8:00";
  night: "20:00";
  noon: "12:00";
}, string, string | Function>
| RegistryOption<Logic>;

custom time aliases (periods).

Inherited from

ts
t.Internal.BaseOptions.period

pivot

ts
pivot: number;

pivot year for two-digit years

Inherited from

ts
t.Internal.BaseOptions.pivot

planner?

ts
optional planner?: PlannerOptions;

parse planner configuration (layoutOrder, etc.)

Inherited from

ts
t.Internal.BaseOptions.planner

plugins

ts
plugins: Plugin | Plugin[];

plugins to be automatically extended

Inherited from

ts
t.Internal.BaseOptions.plugins

silent

ts
silent: boolean | undefined;

suppress console output during catch

Inherited from

ts
t.Internal.BaseOptions.silent

snippet

ts
snippet: 
  | Extend<{
[key: symbol]: RegExp;
}, symbol, RegExp>
| RegistryOption<Pattern>;

date-time snippets to help compose a Layout

Inherited from

ts
t.Internal.BaseOptions.snippet

sphere

ts
sphere: string | undefined;

hemisphere for term.qtr or term.szn

Inherited from

ts
t.Internal.BaseOptions.sphere

store

ts
store: string;

localStorage key

Inherited from

ts
t.Internal.BaseOptions.store

timeStamp?

ts
optional timeStamp?: TimeStamp;

Precision to measure timestamps (ms | us)

Inherited from

ts
t.Internal.BaseOptions.timeStamp

timeZone

ts
timeZone: TimeZoneLike;

Temporal timeZone

Inherited from

ts
t.Internal.BaseOptions.timeZone

value

ts
value: DateTime;

supplied value to parse

Inherited from

ts
t.Internal.BaseOptions.value

Released under the MIT License.