Skip to main content

@terascope/types / dates

dates

Enumerations

EnumerationDescription
ISO8601DateSegmentThe starting substring of an ISO string that is specific towards a date interval

Interfaces

InterfaceDescription
GetTimeBetweenArgs-

Type Aliases

DateInputTypes

DateInputTypes: Date | string | number | DateTuple

Defined in: packages/types/src/dates.ts:23

Type that encompasses all the possible date types for easier reference


DateTuple

DateTuple: readonly [number, number]

Defined in: packages/types/src/dates.ts:18

A storage format for a date tuple, the first time is the timestamp since epoch_millis and the second is the timezone offset (minutes relative to UTC)


TimeBetweenIntervals

TimeBetweenIntervals: "milliseconds" | "seconds" | "minutes" | "hours" | "days" | "calendarDays" | "businessDays" | "weeks" | "calendarWeeks" | "months" | "calendarMonths" | "quarters" | "calendarQuarters" | "years" | "calendarYears" | "calendarISOWeekYears" | "ISOWeekYears" | "ISO8601"

Defined in: packages/types/src/dates.ts:11