WebAssembly / wasi-filesystem

Filesystem API for WASI
Other
178 stars 18 forks source link

Document that filesystem timestamps can be 0. #124

Closed sunfishcode closed 1 year ago

sunfishcode commented 1 year ago

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

badeend commented 1 year ago

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

sunfishcode commented 1 year ago

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.