Skip to main content

add_n_months

Function add_n_months 

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

Add n months to a Jiff [Timestamp].

ยงErrors

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