Check if a datetime falls within this time window
(&self, dt: &DateTime<Utc>)
| 78 | |
| 79 | /// Check if a datetime falls within this time window |
| 80 | pub fn contains(&self, dt: &DateTime<Utc>) -> bool { |
| 81 | dt >= &self.start && dt <= &self.end |
| 82 | } |
| 83 | |
| 84 | /// Get the duration of this time window in seconds |
| 85 | pub fn duration_seconds(&self) -> i64 { |
no outgoing calls