2 releases

0.0.2 Oct 11, 2024
0.0.1 Sep 19, 2024

#255 in Unix APIs

Download history 30/week @ 2024-10-01 214/week @ 2024-10-08 24/week @ 2024-10-15 8/week @ 2024-10-22 3/week @ 2024-10-29 3/week @ 2024-11-05 9/week @ 2024-11-19 7/week @ 2024-11-26 15/week @ 2024-12-03 22/week @ 2024-12-10 4/week @ 2024-12-17

88 downloads per month
Used in 5 crates (3 directly)

Apache-2.0

6KB
95 lines

A very simple, no_std friendly time library for Rust that provides:

  • a Time type that wraps an i128 representing nanoseconds since the Unix epoch
  • a Duration type that wraps an i128 representing a number of nanoseconds
  • const fn math operations for Time and Duration, plus basic core::ops trait implementations

Any conversion to calendar time and parsing and formatting of date/time strings should be accomplished with other libraries. This library just supports very simple high precision time calculations and nothing more.

No runtime deps

Features