split up modules into subfiles

This commit is contained in:
Schrottkatze 2024-01-12 09:36:30 +01:00
parent 4788278d86
commit 96374b6491
Signed by: schrottkatze
GPG key ID: DFD0FD205943C14A
5 changed files with 140 additions and 151 deletions

View file

@ -0,0 +1,13 @@
use time::{Month, OffsetDateTime};
pub fn print_startup_msg() {
// now or fallback to utc
let now = OffsetDateTime::now_local().unwrap_or_else(|_| OffsetDateTime::now_utc());
if now.month() == Month::June {
println!("Hello, thanks for using iOwO and happy pride month!");
println!("Why pride month is important in {}", now.year());
} else {
println!("Hello, thanks for using iOwO! :3");
}
}