pydantic / speedate

Fast and simple datetime, date, time and duration parsing for rust.
https://docs.rs/speedate/latest/speedate/
MIT License
199 stars 17 forks source link

add support for `now()` and `today()` #19

Closed samuelcolvin closed 2 years ago

samuelcolvin commented 2 years ago

Using SystemTime.

Only tricky question is how we get timezone, perhaps we make it an argument to now(), and I guess also to today() since "today in London != today in Syndey"