datetime 0.5.2

Library for date and time formatting and arithmetic
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
extern crate datetime;
use datetime::{Instant, Duration};


#[test]
fn addition() {
    assert_eq!(Instant::at(10), Instant::at(3) + Duration::of(7))
}

#[test]
fn subtraction() {
    assert_eq!(Instant::at(20), Instant::at(50) - Duration::of(30))
}