Cyborg Time

Status: stable

Documentation | Github | Crate

This is the cybernetically enhanced fork of humantime.

Features:

Timestamp parsing/formatting is super-fast because format is basically fixed.

Here are some micro-benchmarks:

``` test result: ok. 0 passed; 0 failed; 26 ignored; 0 measured; 0 filtered out

 Running target/release/deps/datetime_format-8facb4ac832d9770

running 2 tests test rfc3339chrono ... bench: 737 ns/iter (+/- 37) test rfc3339cyborgtime_seconds ... bench: 73 ns/iter (+/- 2)

test result: ok. 0 passed; 0 failed; 0 ignored; 2 measured; 0 filtered out

 Running target/release/deps/datetime_parse-342628f877d7867c

running 6 tests test datetimeutcparsemillis ... bench: 228 ns/iter (+/- 11) test datetimeutcparsenanos ... bench: 236 ns/iter (+/- 10) test datetimeutcparseseconds ... bench: 204 ns/iter (+/- 18) test rfc3339cyborgtimemillis ... bench: 28 ns/iter (+/- 1) test rfc3339cyborgtimenanos ... bench: 36 ns/iter (+/- 2) test rfc3339cyborgtime_seconds ... bench: 24 ns/iter (+/- 1)

test result: ok. 0 passed; 0 failed; 0 ignored; 6 measured; 0 filtered out ```

See [cyborgtime-serde] for serde integration (previous crate [serde-cyborgtime] looks unmaintained).

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.