Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hallerpatrick/time-humanize
Display time in a human readable fashion
https://github.com/hallerpatrick/time-humanize
Last synced: about 2 months ago
JSON representation
Display time in a human readable fashion
- Host: GitHub
- URL: https://github.com/hallerpatrick/time-humanize
- Owner: HallerPatrick
- Created: 2021-11-14T13:31:31.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-21T19:01:41.000Z (about 3 years ago)
- Last Synced: 2024-04-24T02:44:00.541Z (8 months ago)
- Language: Rust
- Homepage: https://hallerpatrick.github.io/time-humanize/time_humanize/
- Size: 2.47 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# time-humanize
A rust crate that displays duration in a human readable format.
This project is a port of [chrono-humanize-rs](https://github.com/imp/chrono-humanize-rs) and
now has 0 dependencies.# Usage
```rust
use std::time::Duration;
use time_humanize::HumanTime;let duration = Duration::from_secs(60);
let human_time = HumanTime::from(duration);
println!("{}", human_time);
```