diff --git a/libimagtimeui/src/date.rs b/libimagtimeui/src/date.rs new file mode 100644 index 00000000..b003af89 --- /dev/null +++ b/libimagtimeui/src/date.rs @@ -0,0 +1,34 @@ +use chrono::naive::date::NaiveDate as ChronoNaiveDate; + +use parse::Parse; + +pub struct Date { + year: i32, + month: u32, + day: u32, +} + +impl Date { + + fn new(year: i32, month: u32, day: u32) -> Date { + unimplemented!() + } + +} + +impl Into for Date { + + fn into(self) -> ChronoNaiveDate { + ChronoNaiveDate::from_ymd(self.year, self.month, self.day) + } + +} + +impl Parse for Date { + + fn parse(s: &str) -> Option { + unimplemented!() + } + +} + diff --git a/libimagtimeui/src/lib.rs b/libimagtimeui/src/lib.rs index a23c3557..2ec7af12 100644 --- a/libimagtimeui/src/lib.rs +++ b/libimagtimeui/src/lib.rs @@ -4,3 +4,6 @@ extern crate regex; #[macro_use] extern crate log; #[macro_use] extern crate libimagerror; + +pub mod date; +