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-timefeature) - chrono::TimeDelta (available with the
with-chronofeature)
Usage
See the examples directory for code examples.