summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-04-27 22:21:05 +0200
committerMatthias Beyer <mail@beyermatthias.de>2016-05-04 17:33:33 +0200
commit9d5912e94b5ab742b99d670057d2aa7849dc5a61 (patch)
tree351b333e4aebb49c55636696a723fc99d7cce93d
parent99023fb40fc98e6e629d15100be1d8e6afeab243 (diff)
Document date
-rw-r--r--src/date.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/date.rs b/src/date.rs
index ec3bef5..8fbbe8f 100644
--- a/src/date.rs
+++ b/src/date.rs
@@ -8,6 +8,7 @@ use serde::de::Visitor;
use serde::de::Error as SerdeError;
use chrono::naive::datetime::NaiveDateTime;
+/// Date is a NaiveDateTime-Wrapper object to be able to implement foreign traits on it
#[derive(Clone, Debug, Hash, Eq, PartialEq)]
pub struct Date(NaiveDateTime);
@@ -19,6 +20,7 @@ impl From<NaiveDateTime> for Date {
}
+/// The date-time parsing template used to parse the date time data exported by taskwarrior.
pub static TASKWARRIOR_DATETIME_TEMPLATE : &'static str = "%Y%m%dT%H%M%SZ";
impl Serialize for Date {