Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Constructors

Properties

Methods

Constructors

constructor

  • new FluentDateTime(value: number, opts?: DateTimeFormatOptions): FluentDateTime
  • 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

opts: DateTimeFormatOptions

Options passed to Intl.DateTimeFormat.

value

value: number

The wrapped native value.

Methods

toString

  • toString(scope: Scope): string

valueOf

  • valueOf(): number