Added item's creation_date

This commit is contained in:
daladim 2021-04-16 09:05:30 +02:00
parent 092765f769
commit 3bf1fed5b9
5 changed files with 84 additions and 22 deletions

View file

@ -40,6 +40,13 @@ impl Item {
}
}
pub fn creation_date(&self) -> Option<&DateTime<Utc>> {
match self {
Item::Event(e) => e.creation_date(),
Item::Task(t) => t.creation_date(),
}
}
pub fn last_modified(&self) -> &DateTime<Utc> {
match self {
Item::Event(e) => e.last_modified(),