Closed cosmicexplorer closed 5 months ago
This repo is no longer maintained; could you please reopen this as a PR against https://github.com/zip-rs/zip2/? Also, the error struct doesn't need to indicate the expected range, since it'll always be the same for a given time unit.
DateTime
construction failed. Since zip files have a strange representation for dates and times, it's helpful to specify why something failed.DateTimeRangeError
.DateTime::from_date_and_time()
, which ignoresDateTimeRangeError
, and addsDateTime::parse_from_date_and_time()
, which retains the error case.DateTime::to_time()
method currently assumes the desired UTC offset is GMT+-0 (GMT). We would like to make this configurable, so that if a zip file was created by a machine with a different UTC offset, we can invert that when reading the zip file.DateTime::to_time()
and addsDateTime::to_time_with_offset()
.DateTime::default()
.const
methodDateTime::zero()
to make the use of the minimum possible date/time explicit.This is not a breaking change, since
DateTimeRangeError
was previously an empty struct, and no method signatures are changed.