Skip to content

Cookbook example of custom time zone from tzdata rules #605

@ptomato

Description

@ptomato
Collaborator

Follow up from #240, we need a cookbook example that does this:

Construct [a Temporal.TimeZone] object directly from tzdata-compatible rules of arbitrary complexity (e.g., for use in testing).

This requires custom time zone support.

Activity

ryzokuken

ryzokuken commented on Jun 10, 2020

@ryzokuken
Member

@ptomato I'm not sure if Etc/TAI fills in this gap, tbh, since I'm just using a helper library for the conversions. What do you think?

ptomato

ptomato commented on Jun 10, 2020

@ptomato
CollaboratorAuthor

The request for the example came from @gibson042 but I would guess that the important part is the tzdata-compatible rules? I had some half-finished code for parsing them. Although, I think that TAI should be included in the cookbook regardless.

added this to the Stable proposal milestone on Sep 17, 2020
added
spec-textSpecification text involved
non-prod-polyfillTHIS POLYFILL IS NOT FOR PRODUCTION USE!
and removed
non-prod-polyfillTHIS POLYFILL IS NOT FOR PRODUCTION USE!
spec-textSpecification text involved
on Sep 18, 2020
ptomato

ptomato commented on Oct 19, 2020

@ptomato
CollaboratorAuthor

Cookbook example to be written after the freeze and before Stage 3

ptomato

ptomato commented on Jan 13, 2021

@ptomato
CollaboratorAuthor

On further reflection this isn't a requirement for Stage 3. To be done later.

modified the milestones: Stage 3, Next on Jan 13, 2021
self-assigned this
on Feb 16, 2021
added a commit that references this issue on Feb 19, 2021
adb5a64
added 2 commits that reference this issue on Feb 19, 2021
8f1d8f2
4fc9cf5
modified the milestones: Next, Post Stage 4 on Dec 8, 2022
added a commit that references this issue on Jul 19, 2025
1b7980c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationAdditions to documentation

Type

No type

Projects

No projects

Relationships

None yet

    Participants

    @ptomato@ryzokuken

    Issue actions

      Cookbook example of custom time zone from tzdata rules · Issue #605 · tc39/proposal-temporal