fn apply_pattern( pattern: &str, year: i32, month: u32, day: u32, hour: u32, minute: u32, second: u32, ) -> String