Parse deltas

This commit is contained in:
Joscha 2021-11-06 18:08:30 +01:00
parent 107966389c
commit a8ddaefa78
2 changed files with 48 additions and 2 deletions

View file

@ -1,5 +1,15 @@
use chrono::{NaiveDate, NaiveDateTime, NaiveTime};
#[derive(Debug)]
pub struct Delta {
pub years: i32,
pub months: i32,
pub weeks: i32,
pub days: i32,
pub hours: i32,
pub minutes: i32,
}
#[derive(Debug)]
struct DateDelta {
years: i32,