JavaScript

A5.d.daterelative Namespace

IN THIS PAGE

Description

The namespace for relative date defaults. Used by Date.toRelative.

Name
Description
A5.d.date.relative.generate Namespace

The namespace for the methods used to generate time units in relative dates. See Date.toRelative.

A5.d.date.relative.templates Namespace

The namespace for templates used in relative dates. See Date.toRelative.

Properties

flowstring

The flow of the date parts (e.g. "years", "months", "days", etc.). Can be "ltr" (the default) or "rtl". If it is "ltr" then the largest unit of time will be the left-most value shown.

Any properties or methods in this namespace can be replaced in order to support other languages or formats.