5 releases

0.1.4 Oct 24, 2020
0.1.3 Jun 14, 2020
0.1.2 Feb 9, 2020
0.1.1 Jan 11, 2020
0.1.0 Jan 2, 2020

#17 in #utc

MIT/Apache

17KB
304 lines

utctimestamp

Crates.io docs.rs

Simple & fast UTC time types

[dependencies]
utctimestamp = "0.1"

While chrono is great for dealing with time in most cases, its 96-bit integer design can be costly when processing and storing large amounts of timestamp data.

This lib solves this problem by providing very simple UTC timestamps that can be converted from and into their corresponding chrono counterpart using Rust's From and Into traits. chrono is then used for all things that aren't expected to occur in big batches, such as formatting and displaying the timestamps.

Optional features

serde-support — Enable (de)serialization support with serde


lib.rs:

Simple & fast UTC time types.

While chrono is great for dealing with time in most cases, its 96-bit integer design can be costly when processing and storing large amounts of timestamp data.

This lib solves this problem by providing very simple UTC timestamps that can be converted from and into their corresponding chrono counterpart using Rust's From and Into traits. chrono is then used for all things that aren't expected to occur in big batches, such as formatting and displaying the timestamps.

Dependencies

~1–1.3MB
~22K SLoC