• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

benches/H03-May-2022-3325

examples/H03-May-2022-2215

src/H03-May-2022-455329

tests/H03-May-2022-1,4221,217

.cargo-checksum.jsonH A D03-May-202289 11

.cargo_vcs_info.jsonH A D01-Jan-197074 65

.gitignoreH A D01-Jan-197018 32

.gitlab-ci.ymlH A D01-Jan-1970571 3631

.travis.ymlH A D01-Jan-197097 109

Cargo.lockH A D01-Jan-19705.6 KiB221195

Cargo.tomlH A D01-Jan-19701.3 KiB4035

Cargo.toml.orig-cargoH A D01-Jan-1970812 2622

LICENSE-APACHEH A D01-Jan-197011.1 KiB202169

LICENSE-MITH A D01-Jan-19701.1 KiB2217

README.mdH A D01-Jan-1970634 2115

README.md

1## Chrono Humanize - Make your text time representation human appealing
2
3Build status
4
5 branch | status
6:-------|:------:
7  master| [![Build Status](https://travis-ci.org/imp/chrono-humanize-rs.svg?branch=master)](https://travis-ci.org/imp/chrono-humanize-rs)
8 develop| [![Build Status](https://travis-ci.org/imp/chrono-humanize-rs.svg?branch=develop)](https://travis-ci.org/imp/chrono-humanize-rs)
9
10## Quick Start
11
12```rust
13use chrono::{Local, Duration};
14use chrono_humanize::HumanTime;
15
16let dt = Local::now() + Duration::days(35);
17let ht = HumanTime::from(dt);
18let english = format!("{}", ht);
19assert_eq!("in a month", english);
20```
21