Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unixtimestamp32 to standard lib #2579

Merged
merged 6 commits into from
Oct 18, 2023

Conversation

timotheeguerin
Copy link
Member

fix #2543

@github-actions
Copy link
Contributor

Changes in this PR will be published to the following url to try(check status of TypeSpec Pull Request Try It pipeline for publish status):
Playground: https://cadlplayground.z22.web.core.windows.net/prs/2579/

Website: https://tspwebsitepr.z22.web.core.windows.net/prs/2579/

@@ -120,6 +120,12 @@ scalar duration;
*/
scalar boolean;

/**
* Represent a 32bit unix timestamp datetime.
Copy link
Member

Choose a reason for hiding this comment

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

I think it's important to mention that this has 1 second granularity, so should not be used to represent e.g. timestamps with millisecond granularity (which now that I think about it is super common and we should probably have a datatype for it).

@timotheeguerin timotheeguerin enabled auto-merge (squash) October 18, 2023 18:50
@timotheeguerin timotheeguerin merged commit 8d24f2f into microsoft:main Oct 18, 2023
12 checks passed
@timotheeguerin timotheeguerin deleted the add-unixtimestamp32 branch October 18, 2023 19:03
tjprescott pushed a commit to tjprescott/typespec that referenced this pull request Oct 18, 2023
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.

Add unixTimestamp32 to std lib
3 participants