Change the behavior of DateTime::from_msdos
when value is invalid
#145
Labels
enhancement
New feature or request
fix merged
Fix is merged, but the issue will stay open until it's released.
Is your feature request related to a problem? Please describe.
DateTime::from_msdos
can create aDateTime
value even ifdatepart
ortimepart
is an invalid value.zip2/src/types.rs
Lines 139 to 156 in 6c60c67
Describe the solution you'd like
I would like one of the following:
A clear and concise description of what you want to happen.
DateTime::from_msdos
anunsafe
function.Err
ifdatepart
ortimepart
is invalid.datepart
ortimepart
is invalid.Describe alternatives you've considered
Specify in the documentation that an invalid
DateTime
value may be created.The text was updated successfully, but these errors were encountered: