Skip to main content
Deno 2 is finally here 🎉️
Learn more
class FluentDateTime
extends FluentType<number>
import { FluentDateTime } from "https://deno.land/x/fluent@0.0.1/bundle/types.ts";

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.

Constructors

new
FluentDateTime(value: number, opts?: Intl.DateTimeFormatOptions)

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

Properties

Options passed to Intl.DateTimeFormat.

Methods

toString(scope: Scope): string

Format this FluentDateTime to a string.