time-rs / time

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

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

Closed JonasFocke01 closed 8 months ago

JonasFocke01 commented 8 months 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 8 months 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.