RelativeTime
Description
Formats a timestamp as a localized string or as relative text that auto-updates in the user's browser.
Arguments
| Name | Default | Description |
|---|---|---|
datetime | TimeThe time to be formatted. | |
tense | SymbolWhich tense to use. One of | |
prefix | StringWhat to prefix the relative time display with. | |
second | SymbolWhat format seconds should take. One of | |
minute | SymbolWhat format minues should take. One of | |
hour | SymbolWhat format hours should take. One of | |
weekday | SymbolWhat format weekdays should take. One of | |
day | SymbolWhat format days should take. One of | |
month | SymbolWhat format months should take. One of | |
year | SymbolWhat format years should take. One of | |
time_zone_name | SymbolWhat format the time zone should take. One of | |
threshold | StringThe threshold, in ISO-8601 'durations' format, at which relative time displays become absolute. | |
precision | SymbolThe precision elapsed time should display. One of | |
format | SymbolThe format the display should take. One of | |
format_style | SymbolThe format the display should take. One of | |
lang | StringThe language to use. | |
title | StringProvide a custom title to the element. | |
no_title | BooleanRemoves the | |
aria_hidden | BooleanSet if the element is hidden or not. | |
system_arguments | Hash |