Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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);
```