summaryrefslogtreecommitdiffstats
path: root/src/timetype.rs
blob: b6de84ea6b87c38f8d109081c02bf3963e9ec9c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//! The module for the TimeType
//!

use chrono::NaiveDateTime;

/// A Type of Time, currently based on chrono::NaiveDateTime
pub enum TimeType {
    Seconds(usize),
    Minutes(usize),
    Hours(usize),
    Days(usize),
    Weeks(usize),
    Months(usize),
    Years(usize),

    Moment(NaiveDateTime),

    Addition(Box<TimeType>, Box<TimeType>),
    Subtraction(Box<TimeType>, Box<TimeType>),
}