Module :: time_tools

experimental rust-status docs.rs discord

Collection of general purpose time tools.

Sample

```rust

[ cfg( feature = "chrono" ) ]

{ use time_tools::; / get milliseconds from UNIX epoch */ let now = time::now(); println!( "now {}", now );

/* get nanoseconds from UNIX epoch */ let now = time::now(); let nowns = time::ns::now(); asserteq!( now, now_ns / 1000000 );

/* get seconds from UNIX epoch */ let now = time::now(); let nows = time::s::now(); asserteq!( now / 1000, now_s ); } ```

To add to your project

sh cargo add time_tools

Try out from the repository

sh git clone https://github.com/Wandalen/wTools cd wTools cd sample/rust/time_tools_trivial cargo run