related: State of datetime handling in Zig?
I’ve took up the task of trying to track Zig master more closely with FObersteiner/zdt: Datetime, Timezones and Durations in Zig - Codeberg.org recently, and all I can say is this can be a big adventure. Not to depreciate Zig in any way, but you have to know what you’re up to, especially since “documentation” for the most recent changes means “read source and git diffs”.
So in principle, I’m with you on this one. Datetime handling can be so fundamental, you’d want to have it in std. I’m writing this despite having my own third party dt lib
- And years of experience with using Python (dt as part of std, timezone not for a long time - big mess!) and go (dt + timezones as part of std - great!).
You could also use std.Io.Clock.real.now(io), to get a Timestamp, no need to dive into the vtable.