Open Cxarli opened 3 years ago
A long time ago I planned to have a typed API but my priorities have shifted, so I usually have barely any time for this crate :/
That said there are a few gotchas but I think it should be feasible to add some support behind a feature flag without a lot of work.
My proposal is to support TryFrom impl for DateTime
Tell me what you think!
It would be very cool if you could do
I can understand it if you don't always want to include the
chrono
dependency for this, but a non-default feature would also be nice.Since ical's date format does not seem very standard, it doesn't have a conversion function built-in in
chrono
, meaning you have to do the following yourself:Given that
chrono
is a pretty popular crate for datetimes, this does not feel very smooth.