Class Formatter

Hierarchy

  • Formatter

Constructors

Properties

patterns: readonly ("day" | "hour" | "minute" | "month" | "second" | "year" | "week" | "y" | "mo" | "w" | "d" | "h" | "min" | "m" | "s" | "millisecond" | "milli" | "ms")[]
separator: string
unitFormat: "long" | "short"

Methods

  • Parameters

    • ms: number

    Returns undefined | string

  • Parameters

    • patterns: readonly ("day" | "hour" | "minute" | "month" | "second" | "year" | "week" | "y" | "mo" | "w" | "d" | "h" | "min" | "m" | "s" | "millisecond" | "milli" | "ms")[]

    Returns Formatter

Generated using TypeDoc