Skip to main content

subtract_n_years

Function subtract_n_years 

Source
pub fn subtract_n_years(datetime: Timestamp, n: u32) -> Result<Timestamp>
Expand description

Subtract n years from a Jiff [Timestamp].

ยงErrors

Returns an error if the resulting date would be invalid or out of range.