Skip to content

Conversation

@rossviljoen
Copy link
Collaborator

Mirrors the standard Dates API where you can do:

DateTime(string(now()))

Copy link
Owner

@ancapdev ancapdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah the reason I couldn't see how to support dataformat without extending it somehow for the nanosecond part. If we only care about roundtrip to string, then this suffices (what's the use case there?)

@rossviljoen
Copy link
Collaborator Author

It's sometimes useful to be able to send strings to/from javascript

I also don't have merge rights here, so you'll have to do it

@rossviljoen rossviljoen merged commit ba82223 into ancapdev:master Jan 29, 2025
@rossviljoen rossviljoen deleted the rv/parse-unixtime branch January 29, 2025 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants