time-rs / time

The most used Rust library for date and time handling.
https://time-rs.github.io
Apache License 2.0
1.13k stars 281 forks source link

Can i try to implement `Time::parse` equivalents? #636

Closed JonasFocke01 closed 1 year ago

JonasFocke01 commented 1 year ago

Hi,

im using this crate quite a while now, and i noticed, that there is a Time::parse(&str, format), but no Date::parse, DateTime::parse or Duration::parse.
Is there the something already going, that implements this?
Or can i try to do this?

jhpratt commented 1 year ago

There are parse methods on Time, Date, UtcOffset, PrimitiveDateTime, and OffsetDatetime, so I'm not certain what you're looking at.

Duration is quite different than those, and is not something I am currently interested in. This is because the format that would be expected would be severely limiting to the point of losing nearly all utility.