some tests passed in clock
This commit is contained in:
parent
0ef500d9ef
commit
e63c68efe8
21 changed files with 1181 additions and 0 deletions
7
rust/gigasecond/src/lib.rs
Normal file
7
rust/gigasecond/src/lib.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
use time::PrimitiveDateTime as DateTime;
|
||||
use time::Duration;
|
||||
|
||||
// Returns a DateTime one billion seconds after start.
|
||||
pub fn after(start: DateTime) -> DateTime {
|
||||
start + Duration::seconds(1_000_000_000)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue