File: README.md

package info (click to toggle)
rust-time-humanize 0.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 172 kB
  • sloc: makefile: 4
file content (19 lines) | stat: -rw-r--r-- 392 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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);
```