epochs 0.2.0

Convert various epoch times to chrono::NaiveDateTime times.
Documentation

Epochs-rust

Convert various epoch times to chrono::NaiveDateTime times in Rust.

$ cat use_epochs.rs 
extern crate epochs;

fn main() {
    let ndt = epochs::unix(1234567890);
    println!("{:?}", ndt);

    let ndt2 = epochs::chrome(12879041490654321);
    println!("{:?}", ndt2);
}

$ rustc -L./Epochs-rust/target/debug/deps use_epochs.rs

$ ./use_epochs 
2009-02-13T23:31:30
2009-02-13T23:31:30.654321

See Also

This project was originally done in Perl. See the Time::Moment::Epoch web page for motivation.

There are also versions in: