diff options
Diffstat (limited to 'apps/cassiopeia/src/data.rs')
-rw-r--r-- | apps/cassiopeia/src/data.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/cassiopeia/src/data.rs b/apps/cassiopeia/src/data.rs index 3911345109ca..7442d699be88 100644 --- a/apps/cassiopeia/src/data.rs +++ b/apps/cassiopeia/src/data.rs @@ -5,7 +5,7 @@ //! analysis tasks. use crate::format::LineCfg; -use chrono::{DateTime, Duration, FixedOffset as Offset, NaiveDate}; +use chrono::{DateTime, Duration, Local, FixedOffset as Offset, NaiveDate}; use std::collections::BTreeMap; #[derive(Debug, Default)] @@ -38,6 +38,13 @@ impl TimeFile { fn get_last_session(&mut self) -> &mut Session { self.sessions.last_mut().unwrap() } + + /// Start a new session (optionally 15-minute rounded) + pub fn start(&mut self, round: bool) -> Option<()> { + let now = Local::now(); + + Some(()) + } } #[derive(Debug)] |