Skip to main content

truth_engine/
dst.rs

1//! DST transition policies for recurring events.
2
3/// Policy for handling events that fall during DST transitions.
4#[derive(Debug, Clone, Copy, PartialEq, Default)]
5pub enum DstPolicy {
6    /// Skip instances that fall in the DST gap (e.g., 2:30 AM during spring forward)
7    Skip,
8    /// Shift to the next valid time after the gap
9    ShiftForward,
10    /// Use wall clock time (maintain local time, adjust UTC offset)
11    #[default]
12    WallClock,
13}