Unify Dates logic and expand DoneDate format

This commit is contained in:
Joscha 2021-12-14 23:32:04 +01:00
parent 2e7ab3c4a1
commit c69af9bcde
8 changed files with 119 additions and 133 deletions

View file

@ -268,7 +268,7 @@ pub enum DoneDate {
Date {
root: NaiveDate,
},
DateWithTime {
DateTime {
root: NaiveDate,
root_time: Time,
},
@ -276,7 +276,12 @@ pub enum DoneDate {
root: NaiveDate,
other: NaiveDate,
},
DateToDateWithTime {
DateTimeToTime {
root: NaiveDate,
root_time: Time,
other_time: Time,
},
DateTimeToDateTime {
root: NaiveDate,
root_time: Time,
other: NaiveDate,