Skip to main content

checked_sub_with_leapsecond

Function checked_sub_with_leapsecond 

Source
pub fn checked_sub_with_leapsecond(
    lhs: &NaiveDateTime,
    rhs: &FixedOffset,
) -> Option<NaiveDateTime>
Expand description

Subtracts a fixed offset from lhs, returning None on overflow.

The mirror of checked_add_with_leapsecond, with the same guarantees.