tc39 / tc39/proposal-temporal

Cookbook: Parsing localized timestamps

Open
#2,004 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

documentation
Dominant language
HTML
Stars
3.7k
Forks
177
PR merge metrics
No merged PRs in 30d

Description

What is the general strategy for parsing timestamps that a user entered in localized format (non ISO 8601)?

F.e. in a German locale a user may enter '22.01.2022 13:45:00'.

Assuming the software knows the time zone, the calendar and the locale, I would like to end up with a (UTC) Instance for internal arithmetics.

What do you recommend for parsing user input? Is there already any documentation about this?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name any files, tests, or entry points; it asks for general guidance on parsing localized timestamps with Temporal. Start by reviewing the existing Temporal documentation, then define the documentation needed to explain locale-aware input, known time zone and calendar handling, and conversion to a UTC Instant.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation, internationalization
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.