Closed ogarcia closed 4 months ago
This is not planned. Using T::parse(value, &Rfc3339)
is clearer as it shows the format that is expected. Note that Date
and Time
don't even implement FromStr
— Month
and Weekday
are the only types that do.
It would be very interesting if
FromStr
were implemented forPrimitiveDateTime
andOffsetDateTime
. The RFC3339 format could be used as a reference for the input string since it is usually the most used.For
PrimitiveDateTime
same format can used but without the timezone information:%Y-%m-%dT%H:%M:%S%.f
.