Class Dora

Hierarchy

  • Dora

Constructors

  • Parameters

    • ts: number
    • Optional timezone: string

    Returns Dora

Properties

$D: number
$H: number
$M: number
$W: number
$d: Date
$m: number
$ms: number
$s: number
$utcOffset: number
$y: number
$z: string
DATE_TIME_FORMAT_MATCHES: Record<string, ((dora) => string)> = ...

Type declaration

    • (dora): string
    • Parameters

      Returns string

Methods

  • Parameters

    • int: number
    • unit: DateTimeUnit

    Returns Dora

  • Returns number

  • Parameters

    • unit: "day" | "hour" | "minute" | "month" | "second" | "year" | "week" | "date" | "isoWeek"

    Returns Dora

  • Parameters

    • format: string = DEFAULT_FORMAT

    Returns string

  • Parameters

    • unit: DateTimeUnit

    Returns number

  • Parameters

    • unit: DateTimeUnit
    • int: number

    Returns Dora

  • Parameters

    • unit: "week" | DateTimeUnit | "isoWeek"

    Returns Dora

  • Parameters

    • int: number
    • unit: DateTimeUnit

    Returns Dora

  • Returns string

  • Returns number

  • Returns number

  • Parameters

    • date_arr: DateTimeArray
    • Optional timezone: string

    Returns Dora

  • Returns string

  • Parameters

    • Optional timezone: string

    Returns Dora

Generated using TypeDoc