use aion::*;
use chrono::{TimeZone, Utc};
fn main() {
let two_days = 2.days();
println!("2 days: {:?}", two_days);
let attention_span = 1.seconds();
println!("Attention span: {:?}", attention_span);
let two_hours_from_now = 2.hours().from_now();
println!("2 hours from now: {}", two_hours_from_now);
let last_week = 7.days().ago(); println!("1 week ago: {}", last_week);
let christmas = Utc.ymd(2020, 12, 25).and_hms(0, 0, 0);
let two_weeks_before_christmas = 2.weeks().before(christmas);
println!("2 weeks before christmas: {}", two_weeks_before_christmas);
let boxing_day = 1.days().after(christmas);
println!("Boxing day: {}", boxing_day);
}