Простые типы / Дата и время

use chrono;
use chrono::{ NaiveDate, Duration };
use chronoutil::RelativeDuration;

let now = chrono::offset::Utc::now();
let yesterday = now - Duration::days(1);
let tomorrow = now + Duration::days(1);
let next_month = now + RelativeDuration::months(1);
let next_year = now + RelativeDuration::years(1);

println!("yesterday is {yesterday}");
println!("tomorrow is {tomorrow}");
println!("next_month is {next_month}");
println!("next_year is {next_year}");