period 0.7.0

A human-friendly date and time library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod date;
mod error;
mod formatting;
mod now;
mod relative;

pub use date::{day_of_year, days_in_month, is_weekday, is_weekend, week_of_year};
pub use error::PeriodError;
pub use formatting::{to_date_string, to_iso8601, to_long_date, to_rfc2822, to_short_date};
pub use now::{now, today};
pub use relative::{
    Relative, days_ago, days_from_now, hours_ago, hours_from_now, humanize, minutes_ago,
    minutes_from_now, months_ago, months_from_now, seconds_ago, seconds_from_now, tomorrow,
    weeks_ago, weeks_from_now, years_ago, years_from_now, yesterday,
};