Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
benches/ | H | 03-May-2022 | - | 33 | 25 | |
src/ | H | 03-May-2022 | - | 338 | 243 | |
tests/ | H | 03-May-2022 | - | 1,423 | 1,218 | |
.cargo-checksum.json | H A D | 03-May-2022 | 89 | 1 | 1 | |
.cargo_vcs_info.json | H A D | 15-Sep-2020 | 74 | 6 | 5 | |
.gitignore | H A D | 05-Feb-2018 | 18 | 3 | 2 | |
.gitlab-ci.yml | H A D | 05-Feb-2018 | 571 | 36 | 31 | |
.travis.yml | H A D | 05-Feb-2018 | 97 | 10 | 9 | |
Cargo.toml | H A D | 15-Sep-2020 | 1.2 KiB | 39 | 34 | |
Cargo.toml.orig-cargo | H A D | 15-Sep-2020 | 781 | 25 | 21 | |
LICENSE-APACHE | H A D | 05-Feb-2018 | 11.1 KiB | 202 | 169 | |
LICENSE-MIT | H A D | 05-Feb-2018 | 1.1 KiB | 22 | 17 | |
README.md | H A D | 15-Sep-2020 | 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