systemd-duration 0.1.1

Convert systemd style time durations into other formats
Documentation

systemd-duration

systemd-duration is a crate that implements parsing of the systemd duration format in Rust.

This library can convert a systemd duration string to the following:

  • [std::time::Duration]
  • [time::Duration] (available with the with-time feature)
  • [chrono::TimeDelta] (available with the with-chrono feature)

Usage

See the examples directory for code examples.