Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ParsingComponents

Hierarchy

  • ParsingComponents

Implements

Index

Constructors

constructor

  • new ParsingComponents(reference: ReferenceWithTimezone, knownComponents?: { day: any; hour: any; meridiem: any; millisecond: any; minute: any; month: any; second: any; timezoneOffset: any; weekday: any; year: any }): ParsingComponents
  • Parameters

    • reference: ReferenceWithTimezone
    • Optional knownComponents: { day: any; hour: any; meridiem: any; millisecond: any; minute: any; month: any; second: any; timezoneOffset: any; weekday: any; year: any }

    Returns ParsingComponents

Properties

Private _tags

_tags: Set<string> = ...

Private impliedValues

impliedValues: { day: any; hour: any; meridiem: any; millisecond: any; minute: any; month: any; second: any; timezoneOffset: any; weekday: any; year: any }

Type declaration

Private knownValues

knownValues: { day: any; hour: any; meridiem: any; millisecond: any; minute: any; month: any; second: any; timezoneOffset: any; weekday: any; year: any }

Type declaration

Private reference

Methods

addTag

addTags

assign

clone

date

  • date(): Date

Private dateWithoutTimezoneAdjustment

  • dateWithoutTimezoneAdjustment(): Date

dayjs

  • dayjs(): Dayjs

delete

get

getCertainComponents

imply

isCertain

isDateWithUnknownYear

  • isDateWithUnknownYear(): boolean

isOnlyDate

  • isOnlyDate(): boolean

isOnlyTime

  • isOnlyTime(): boolean

isOnlyWeekdayComponent

  • isOnlyWeekdayComponent(): boolean

isValidDate

  • isValidDate(): boolean

tags

  • tags(): Set<string>

toString

  • toString(): string

Static createRelativeFromReference

  • createRelativeFromReference(reference: ReferenceWithTimezone, fragments: { D: any; M: any; Q: any; d: any; date: any; dates: any; day: any; days: any; h: any; hour: any; hours: any; m: any; millisecond: any; milliseconds: any; minute: any; minutes: any; month: any; months: any; ms: any; quarter: any; quarters: any; s: any; second: any; seconds: any; y: any; year: any; years: any }): ParsingComponents
  • Parameters

    • reference: ReferenceWithTimezone
    • fragments: { D: any; M: any; Q: any; d: any; date: any; dates: any; day: any; days: any; h: any; hour: any; hours: any; m: any; millisecond: any; milliseconds: any; minute: any; minutes: any; month: any; months: any; ms: any; quarter: any; quarters: any; s: any; second: any; seconds: any; y: any; year: any; years: any }

    Returns ParsingComponents

Generated using TypeDoc