Skip to content

Relative time/dates #35

@zbraniecki

Description

@zbraniecki

There are two major areas where relative time/date formatting could use standardization:

  1. Relative time representation

Good example are timers - representing time like "31 hours, 15 minutes and 23 seconds" as "31:15:23".

  1. pretty relative date/time.
    A lot of web apps humanize relative date and time with messages like:
  • a few seconds ago
  • less than a minute ago
  • one hour ago
  • in one hour
  • yesterday
  • last week
  • in 2 days

All of those patterns are available in CLDR and it would enable web authors to provide better user interfaces if we could incorporate this kind of formatting either into DateTimeFormat or into a separate RelativeDateTimeFormat.

Metadata

Metadata

Assignees

Labels

c: datetimeComponent: dates, times, timezoness: in progressStatus: the issue has an active proposal

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions