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

Document that filesystem timestamps can be 0. #124

Merged
merged 4 commits into from
Sep 13, 2023

Conversation

sunfishcode
Copy link
Member

@sunfishcode sunfishcode commented Jul 20, 2023

A value of 0 in a timestamp indicates the time is unknown. This ports #531 from Preview 1 to Preview 2.

A value of 0 in a timestamp indicates the time is unknown. This
ports #531 from Preview 1 to Preview 2.
@sunfishcode sunfishcode force-pushed the sunfishcode/zero-timestamp branch from 49f6242 to e2801cd Compare July 20, 2023 23:38
wit/types.wit Outdated Show resolved Hide resolved
@badeend
Copy link
Contributor

badeend commented Jul 27, 2023

Why did you choose a sentinel value over option<datetime> ?

@sunfishcode sunfishcode force-pushed the sunfishcode/zero-timestamp branch from 621aff4 to eda4f61 Compare August 7, 2023 20:55
@sunfishcode
Copy link
Member Author

Why did you choose a sentinel value over option<datetime> ?

Ah, I guess I was just thinking in terms of preview1. But you're right, option would be more appropriate here. I've now changed this.

@sunfishcode sunfishcode merged commit 9675a4b into WebAssembly:main Sep 13, 2023
@sunfishcode sunfishcode deleted the sunfishcode/zero-timestamp branch September 13, 2023 19:06
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.

4 participants