add_n_years_nanos

Function add_n_years_nanos 

Source
pub fn add_n_years_nanos(unix_nanos: UnixNanos, n: u32) -> Result<UnixNanos>
Expand description

Add n years to a given UNIX nanoseconds timestamp.

ยงErrors

Returns an error if the resulting timestamp is out of range or invalid.