#[allow(unused_imports)]
use chrono::{Local, Timelike};
#[cfg(feature = "hello")]
pub fn say_hello(name: &str) -> String {
format!("Hello, {}", name)
}
#[cfg(feature = "time")]
pub fn get_timestamp() -> String {
let now = Local::now();
let formatted_time = now.format("%H:%M");
format!("{}", formatted_time)
}
#[cfg(feature = "greet")]
pub fn say_greeting() -> String {
let hour = Local::now().hour();
let greet = match hour {
11..=14 => "Afternoon",
15..=20 => "Evening",
21..=24 => "Night",
_ => "Morning",
};
format!("Good {}", greet)
}