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)
See the examples directory for code examples.