Skip to main content

plus_seconds

Function plus_seconds 

Source
pub fn plus_seconds(
    instant: Timestamp,
    seconds: i64,
) -> Result<Timestamp, TimestampError>
Expand description

The instant seconds after instant.

Sub-second precision is kept: a bounded change asked to stand for a minute stands for a minute, rather than for a minute less however far into a second it happened to be made.

§Errors

Returns the timestamp crate’s own error when the sum denotes no representable instant.