Try Install Learn Blog API Packages GitHub
Pages

Ui.RelativeTime

Renders a time relative from the current time in human readable language.

States

now
:
Time
=
Time.now()

The current time.

Properties

date
:
Time

The date.

formatter
:
Function(Time, Time, Time.Format.Language, String)
=
Time.distanceOfTimeInWords

The formatter for the text.

language
:
Time.Format.Language
=
Time.Format:ENGLISH

The language to use for time formatting.

titleFormatter
:
Function(Time.Format.Language, Time, String)
=
(language : Time.Format.Language, date : Time) { Time.format(date, language, "%F") }

The formatter for the title.

Functions

render
:
Html

Renders the component.