Skip to content

A need for Intl.DurationFormat.prototype.formatRange #1045

@FrankYFTang

Description

@FrankYFTang

The web need a range format for duration.

Use case:
A .This is particular useful to indicate a duration of presentation in a video or music

For example, when a research paper need to mention a particular part of interview in a YouTube video in MLA or APA format

https://chat.library.berkeleycollege.edu/faq/166951#:~:text=Your%20in%2Dtext%20citation%20will,00:02:00).

In-text citation with author:

(Last name, 00:01:15 - 00:02:00).

In-text citation with no author or same author and uploader:

("Title of video," 00:01:15 - 00:02:00).

B. This is also useful for estimation of time need. For example, how long it will take to travel from one area to another in maps

In English
"3 hr to 4 hr 30 min"

https://www.google.com/maps/dir/San+Francisco,+California/Fresno,+California/@37.2740075,-122.422664,8z/am=t/data=!4m18!4m17!1m5!1m1!1s0x80859a6d00690021:0x4a501367f076adff!2m2!1d-122.4194155!2d37.7749295!1m5!1m1!1s0x80945de1549e4e9d:0x7b12406449a3b811!2m2!1d-119.7871247!2d36.7377981!2m3!6e0!7e2!8j1798806000!3e0?entry=ttu&g_ep=EgoyMDI2MDIxOC4wIKXMDSoASAFQAw%3D%3D

in French
"3 h à 4 h 30 min"
https://www.google.com/maps/dir/San+Francisco,+California/Fresno,+California/@37.2740075,-122.422664,8z/am=t/data=!4m18!4m17!1m5!1m1!1s0x80859a6d00690021:0x4a501367f076adff!2m2!1d-122.4194155!2d37.7749295!1m5!1m1!1s0x80945de1549e4e9d:0x7b12406449a3b811!2m2!1d-119.7871247!2d36.7377981!2m3!6e0!7e2!8j1798806000!3e0?hl=fr&entry=ttu&g_ep=EgoyMDI2MDIxOC4wIKXMDSoASAFQAw%3D%3D

in Chinese
"3 小时到 4 小时 30分钟"
https://www.google.com/maps/dir/%E6%97%A7%E9%87%91%E5%B1%B1+%E5%8A%A0%E5%88%A9%E7%A6%8F%E5%B0%BC%E4%BA%9A/%E5%BC%97%E9%9B%B7%E6%96%AF%E8%AF%BA+%E5%8A%A0%E5%88%A9%E7%A6%8F%E5%B0%BC%E4%BA%9A/@37.2740075,-122.422664,8z/am=t/data=!4m18!4m17!1m5!1m1!1s0x80859a6d00690021:0x4a501367f076adff!2m2!1d-122.4194155!2d37.7749295!1m5!1m1!1s0x80945de1549e4e9d:0x7b12406449a3b811!2m2!1d-119.7871247!2d36.7377981!2m3!6e0!7e2!8j1798806000!3e0?hl=zh&entry=ttu&g_ep=EgoyMDI2MDIyMi4wIKXMDSoASAFQAw%3D%3D

This is useful for any application which give an estimate range of duration instead of a particular duration.

@sffc

Metadata

Metadata

Assignees

No one assigned

    Labels

    ProposalLarger change requiring a proposals: discussStatus: TG2 must discuss to move forward

    Type

    No type

    Projects

    Status

    Other Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions