Pretty Date
A rust library for the simple, friendly, human readable formatting for the chrono NaiveDateTime, for example:
- Within the last ten minutes:
Just now
- Earlier today:
20:56 Today
- Earlier in the year:
5 September, 23:56
Usage
Add this to your Cargo.toml
:
[]
= "0.1.2"
Basic default usage:
use NaiveDateTime;
use PrettyDateFormatter;
Advanced usage:
use NaiveDateTime;
use PrettyDateFormat;
use PrettyDateRule;
License
Rand is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT, and COPYRIGHT for details.