Time relative to now (2 days ago)
ID relative_time
DatatypeNot PIIcategoricalDraft
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
A moment in the past given as the time elapsed until the page was shown: 2 days ago, an hour ago, 3 years 23 weeks ago, 1h 35min ago. Forums, comment lists, file listings and activity feeds write the time of the last post or update this way, and the value is only meaningful together with the date of the page (the crawl date for archived pages).
- Categories
- Date and time
- Countries
- Global (not tied to a country)
- Languages
- English
- Quality
- 70/100 · missing: regexp, mapping (Wikidata, Schema.org, ...)
- Metacrafter rules
- 1 rule (0 by field name, 1 by value)
relativetimevaluedata, common/dateandtime.yaml
- Supported by tools
- metacrafter
Examples
| Value | Description |
|---|---|
| 2 days ago | |
| an hour ago | |
| 2 years 38 weeks ago | Drupal |
| 1h 35min ago | |
| 2 days invalid | a duration |
Translations
| Language | Name | Description |
|---|---|---|
| Russian | Время относительно текущего момента (2 дня назад) |
Sources
- doc: developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/relative_time - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/datetime/relative_time.yamlon GitHub