oxedyne/fe2o3/fe2o3_datime/src/core/period.rs
534 bytes, 7 runs
created by r1870400018:6357, which is this file's identity for as long as the history lasts, whatever it is later renamed to
download · who wrote it · its history
| 1 | //! [Written with AI entirely](https://need2know.ai/entirely-ai/code)\ |
| 2 | //! Anthropic Claude |
| 3 | |
| 4 | use crate::time::CalClockZone; |
| 5 | |
| 6 | use oxedyne_fe2o3_core::prelude::*; |
| 7 | |
| 8 | #[derive(Clone, Debug, PartialEq)] |
| 9 | pub struct AbstractPeriod { |
| 10 | zone: CalClockZone, |
| 11 | } |
| 12 | |
| 13 | impl AbstractPeriod { |
| 14 | pub fn new(zone: CalClockZone) -> Self { |
| 15 | Self { zone } |
| 16 | } |
| 17 | |
| 18 | pub fn new_default() -> Self { |
| 19 | Self { |
| 20 | zone: CalClockZone::default(), |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | pub fn zone(&self) -> &CalClockZone { |
| 25 | &self.zone |
| 26 | } |
| 27 | } |