2023-10-11 11:06:56 -05:00
|
|
|
use time::{ext::NumericalDuration, PrimitiveDateTime as DateTime};
|
2023-10-11 10:59:06 -05:00
|
|
|
|
|
|
|
// Returns a DateTime one billion seconds after start.
|
|
|
|
pub fn after(start: DateTime) -> DateTime {
|
2023-10-11 11:06:56 -05:00
|
|
|
start + 1_000_000_000.seconds()
|
2023-10-11 10:59:06 -05:00
|
|
|
}
|