In Chrono v0.4.23, Utc::ymd() and Date::and_hms(), which cause panics for invalid inputs, are deprecated in favor of APIs returning LocalResult. Also, Utc::with_ymd_and_hms() is newly introduced.
This PR makes an API change; Identification::ref_time() now returns chrono::DateTime wrapped by Result.
This PR provides migration to Chrono v0.4.23.
In Chrono v0.4.23,
Utc::ymd()
andDate::and_hms()
, which cause panics for invalid inputs, are deprecated in favor of APIs returningLocalResult
. Also,Utc::with_ymd_and_hms()
is newly introduced.This PR makes an API change;
Identification::ref_time()
now returnschrono::DateTime
wrapped byResult
.