- Added
chronov0.4 integration.- Enabled by
chrono04feature.
- Enabled by
- Added
chronov0.4 integration (31f6771961a60834643ee356b6a0cead6fa45677).- Enabled by
chrono04feature. - Note that some conversions are lossy (truncates subnanosecond for example).
common::Hms6ColonStr{,ing}andchrono::NaiveTimeFrom<&common::Hms6ColonStr> for chrono::NaiveTimeFrom<&chrono::NaiveTime> for common::Hms6ColonString
common::TimeNumOffsetColonStr{,ing}andchrono::FixedOffsetFrom<&common::TimeNumOffsetColonStr> for chrono::FixedOffsetTryFrom<&chrono::FixedOffset> for common::TimeNumOffsetColonStr- Note that
chrono::FixedOffsetcan have non-zero seconds (such as+01:23:45), but this is not allowed forcommon::TimeNumOffsetColonStr{,ing}.
- Note that
common::Ymd8HyphenStr{,ing}andchrono::NaiveDateFrom<&common::Ymd8HyphenStr> for chrono::NaiveDateTryFrom<&chrono::NaiveDate> for common::Ymd8HyphenString- Note that
chrono::NaiveDatecan have year which is less than zero or larger than 9999, but this is not allowed forcommon::Ymd8HyphenStr{,ing}.
- Note that
rfc3339::DateTimeStrandchrono::DateTime<chrono::FixedOffset>rfc3339::DateTimeStr::to_chrono_date_time(&self) -> chrono::DateTime<chrono::FixedOffset>
rfc3339::TimeOffsetStrandchrono::FixedOffsetFrom<&rfc3339::TimeOffsetStr> for chrono::FixedOffset
rfc3339::PartialTimeStrandchrono::NaiveTimerfc3339::PartialTimeStr::to_chrono_naive_time(&self) -> chrono::NaiveTime
- Enabled by
- Now
TryFrom<Vec<u8>> for {OwnedString}impls usesConversionError<Vec<u8>>as an error type, instead ofError(4353b833860cbbf92e708cf9ddf55103ab059386). TryFrom<String> for {VariableLengthOwnedString}impls are added.- Added
assignmethod to fixed length string slice types (common::{Hms6ColonStr, TimeNumOffsetColonStr, Ymd8HyphenStr}) (d4de91e7abbad0cd13a45da48efe698c1b2e5d57). - Added
Hms6ColonStr::to_secondsmethod (66448be35bf51bc37589855dc2084cf706e69a03). - Added
Ymd8HyphenStr::{days_since_epoch, yday0, yday1}methods (66448be35bf51bc37589855dc2084cf706e69a03). - Added value creation methods and trait impls (6feb20ae2c9efebb34ccf18a5ce333383fa768f0).
- Improve doc comments.
TryFrom<String> for {VariableLengthOwnedString}impls are added.- Added
assignmethod to fixed length string slice types (common::{Hms6ColonStr, TimeNumOffsetColonStr, Ymd8HyphenStr}). - Added
Hms6ColonStr::to_secondsmethod. - Added
Ymd8HyphenStr::{days_since_epoch, yday0, yday1}methods. - Added value creation methods and trait impls.
common::Hms6ColonStringfrom_hms()
common::Ymd8HyphenStringfrom_ym0d(),from_ym1d()
common::TimeNumOffsetColonStringutc(),unknown_local_offset(),from_minutes(),from_sign_and_hm(),from_hm_signed()
rfc3339::TimeOffsetStringz(),unknown_local_offset(),from_minutes(),from_sign_and_hm(),from_hm_signed()From<&common::TimeNumOffsetColonStr{,ing}> for rfc3339::TimeOffsetString
- Now
TryFrom<Vec<u8>> for {OwnedString}impls usesConversionError<Vec<u8>>as an error type, instead ofError.- A pair of
ErrorandConversionError<T>is quite similar tostd::str::Utf8Errorandstd::string::FromUtf8Error.ConversionError<T>allows users to get the value back without extra allocation overhead, when it is not convertible to the target type.
- A pair of
Initial release.
Mainly RFC 3339 datetime types are supported.