Skip to main content

add_n_years

Function add_n_years 

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

Add n years to a Jiff [Timestamp].

ยงErrors

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