datetime-default 1.1.1

Provide NewType of Datetime that overrides the default value.
Documentation
1
2
3
4
5
6
7
8
9
10
pub struct AssertOffsetHours<const MIN: i32, const OFFSET_HOURS: i32, const MAX: i32>;

impl<const MIN: i32, const OFFSET_HOURS: i32, const MAX: i32>
    AssertOffsetHours<MIN, OFFSET_HOURS, MAX>
{
    pub const OK: () = assert!(
        MIN < OFFSET_HOURS && OFFSET_HOURS < MAX,
        "FixedOffset::east out of bounds"
    );
}