Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Implement a basic date builtin #70

Merged
merged 1 commit into from
Mar 29, 2024
Merged

Conversation

AtkinsSJ
Copy link
Contributor

A couple of the format sequences aren't implemented yet, because the values aren't exposed by JS, and any solution I come up with is likely to be incorrect when crossing daylight-savings boundaries. Basically, I can't wait for the Temporal API to be generally available!

A couple of the format sequences aren't implemented yet, because the
values aren't exposed by JS, and any solution I come up with is likely
to be incorrect when crossing daylight-savings boundaries. Basically, I
can't wait for the Temporal API to be generally available!
@KernelDeimos
Copy link
Collaborator

Your mention of timezones makes me think of Tom Scott's video on the subject. It's good to have this command in here, I often use it at the bottom of scripts so if I check back later I know when they finished.

@KernelDeimos KernelDeimos merged commit 0b378bd into HeyPuter:trunk Mar 29, 2024
3 checks passed
@AtkinsSJ
Copy link
Contributor Author

I started working on some tests for this earlier, I'll submit them as a separate PR. I thought it would be a bit troublesome but then I remembered there's a mocking library for literally everything. 😆

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants