-
Notifications
You must be signed in to change notification settings - Fork 218
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
Add unixtimestamp32 to standard lib #2579
Conversation
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): Website: https://tspwebsitepr.z22.web.core.windows.net/prs/2579/ |
packages/compiler/lib/lib.tsp
Outdated
@@ -120,6 +120,12 @@ scalar duration; | |||
*/ | |||
scalar boolean; | |||
|
|||
/** | |||
* Represent a 32bit unix timestamp datetime. |
There was a problem hiding this comment.
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).
fix #2543