Constant roundable::MINUTE

source ·
pub const MINUTE: Duration;
Expand description

A minute. Useful for rounding Duration.

use roundable::{MINUTE, Roundable};
use std::time::Duration;

assert!(MINUTE == Duration::from_secs(30).round_to(MINUTE));