Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
benches/ | H | 03-May-2022 | - | 33 | 25 | |
examples/ | H | 03-May-2022 | - | 22 | 15 | |
src/ | H | 03-May-2022 | - | 455 | 329 | |
tests/ | H | 03-May-2022 | - | 1,422 | 1,217 | |
.cargo-checksum.json | H A D | 03-May-2022 | 89 | 1 | 1 | |
.cargo_vcs_info.json | H A D | 01-Jan-1970 | 74 | 6 | 5 | |
.gitignore | H A D | 01-Jan-1970 | 18 | 3 | 2 | |
.gitlab-ci.yml | H A D | 01-Jan-1970 | 571 | 36 | 31 | |
.travis.yml | H A D | 01-Jan-1970 | 97 | 10 | 9 | |
Cargo.lock | H A D | 01-Jan-1970 | 5.6 KiB | 221 | 195 | |
Cargo.toml | H A D | 01-Jan-1970 | 1.3 KiB | 40 | 35 | |
Cargo.toml.orig-cargo | H A D | 01-Jan-1970 | 812 | 26 | 22 | |
LICENSE-APACHE | H A D | 01-Jan-1970 | 11.1 KiB | 202 | 169 | |
LICENSE-MIT | H A D | 01-Jan-1970 | 1.1 KiB | 22 | 17 | |
README.md | H A D | 01-Jan-1970 | 634 | 21 | 15 |
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