Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DateEnv

Index

Constructors

  • new DateEnv(settings: DateEnvSettings): DateEnv
  • Parameters

    • settings: DateEnvSettings

    Returns DateEnv

Properties

calendarSystem: CalendarSystem
canComputeOffset: boolean
cmdFormatter?: CmdFormatterFunc
defaultSeparator: string
locale: Locale
namedTimeZoneImpl: NamedTimeZoneImpl
timeZone: string
weekDow: number
weekDoy: number
weekNumberFunc: any
weekText: string
weekTextLong: string

Methods

  • addMonths(marker: Date, n: number): Date
  • Parameters

    • marker: Date
    • n: number

    Returns Date

  • Parameters

    • marker: Date
    • n: number

    Returns Date

  • computeWeekNumber(marker: Date): number
  • Parameters

    Returns number

  • createNowMarker(): Date
  • diffWholeMonths(m0: Date, m1: Date): number
  • Parameters

    Returns number

  • diffWholeYears(m0: Date, m1: Date): number
  • Parameters

    Returns number

  • format(marker: Date, formatter: DateFormatter, dateOptions?: { forcedTzo?: number }): string
  • Parameters

    • marker: Date
    • formatter: DateFormatter
    • Optional dateOptions: { forcedTzo?: number }
      • Optional forcedTzo?: number

    Returns string

  • formatIso(marker: Date, extraOptions?: any): string
  • Parameters

    • marker: Date
    • Optional extraOptions: any

    Returns string

  • formatRange(start: Date, end: Date, formatter: DateFormatter, dateOptions?: { defaultSeparator?: string; forcedEndTzo?: number; forcedStartTzo?: number; isEndExclusive?: boolean }): string
  • Parameters

    • start: Date
    • end: Date
    • formatter: DateFormatter
    • Optional dateOptions: { defaultSeparator?: string; forcedEndTzo?: number; forcedStartTzo?: number; isEndExclusive?: boolean }
      • Optional defaultSeparator?: string
      • Optional forcedEndTzo?: number
      • Optional forcedStartTzo?: number
      • Optional isEndExclusive?: boolean

    Returns string

  • getMonth(marker: Date): number
  • Parameters

    Returns number

  • getYear(marker: Date): number
  • Parameters

    Returns number

  • greatestWholeUnit(m0: Date, m1: Date): { unit: string; value: number }
  • Parameters

    Returns { unit: string; value: number }

    • unit: string
    • value: number
  • offsetForMarker(m: Date): number
  • Parameters

    Returns number

  • parse(s: string): { forcedTzo: any; isTimeUnspecified: boolean; marker: Date }
  • Parameters

    • s: string

    Returns { forcedTzo: any; isTimeUnspecified: boolean; marker: Date }

    • forcedTzo: any
    • isTimeUnspecified: boolean
    • marker: Date
  • Parameters

    Returns Date

  • timestampToMarker(ms: number): Date
  • Parameters

    • ms: number

    Returns Date

  • toDate(m: Date, forcedTzo?: number): Date
  • Parameters

    • m: Date
    • Optional forcedTzo: number

    Returns Date

Generated using TypeDoc