Parse deltas
This commit is contained in:
parent
107966389c
commit
a8ddaefa78
2 changed files with 48 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue