A FluentType representing a date and time.

A FluentDateTime instance stores the number value of the date it represents, as a numerical timestamp in milliseconds. It may also store an option bag of options which will be passed to Intl.DateTimeFormat when the FluentDateTime is formatted to a string.

Hierarchy

Constructors

Properties

Methods

Constructors

  • Create an instance of FluentDateTime with options to the Intl.DateTimeFormat constructor.

    Parameters

    • value: number

      The number value of this FluentDateTime, in milliseconds.

    • opts: DateTimeFormatOptions = {}

      Options which will be passed to Intl.DateTimeFormat.

    Returns FluentDateTime

Properties

opts: DateTimeFormatOptions

Options passed to Intl.DateTimeFormat.

value: number

The wrapped native value.

Methods