tc39 / tc39/proposal-temporal

Should Temporal ship a TAI and/or GPS time zone? (or document how to build in a cookbook sample?)

Open
#900 5 comments 2 reactions 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

While fielding replies to my tweet about https://yourcalendricalfallacyis.com/ , I noticed that @ryzokuken had already built a custom time zone for TAI, which (as I naively understand it) is the same as UTC but without leap seconds. https://github.com/ryzokuken/temporal-tai/blob/master/index.mjs

It seems like a fairly simple implementation. Should Temporal ship with a TAI time zone (or also a GPS time zone?) so folks who want better leap second support can get it without rolling their own?

If not, are these two good candidates for cookbook samples?

BTW, there was already some feedback about this a while ago: https://github.com/tc39/proposal-temporal/issues/133

I admit I don't know much about leap seconds (@gibson042 knows a lot more) so this may not be a helpful suggestion-- but at least wanted to capture it here.

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

Read the linked custom implementation in index.mjs and the earlier feedback in issue 133, then compare those with Temporal's existing time-zone design. Done means reaching a documented decision about shipping TAI/GPS support or adding cookbook samples, with the chosen scope recorded.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.