Cookbook: Parsing localized timestamps
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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