badboy / iso8601

Parsing ISO8601 dates using nom
https://docs.rs/iso8601/
MIT License
74 stars 22 forks source link

Feature DateTime::from_unix_timestamp(i64) #53

Open smokytheangel0 opened 1 year ago

smokytheangel0 commented 1 year ago

I'm not entirely sure how this would be done using nom so I thought I would ask.

badboy commented 1 year ago

There's not really much to parse from a unix timestamp. You will need to do some calculations to get to the date and time. This crate doesn't do any date math at all at the moment and I'm not very keen on taking that on. You're probably much better served using chrono or time.