dreamworkAPI
Ctrl K
GitHub
classDocs / FluentDateTime

FluentDateTime

classsharedmenusource
Object → FluentType → FluentDateTime

The date and time, Unix timestamps must be wrapped in it to be formatted as dates.

Constructor

FluentDateTime(value: number, options: fluent.DateTimeOptions?): FluentDateTime

Fields

NameTypeDescription
valuenumberThe Unix timestamp in seconds.
optionsfluent.DateTimeOptions | nilThe formatting options, must not be changed since they can be shared.

Methods

#FluentDateTime:toString

nodiscardsource
function FluentDateTime:toString(scope?: fluent.Scope): string
Parameters
NameTypeDescription
scopeoptionalfluent.Scope
Returns
TypeNameDescription
string
Generated from the dreamwork meta branch.