Debian Codegraph @

examples/timestamps_utc_offset.rs

raw symbols SCIP
1 use simple_logger::SimpleLogger;
2 use time::UtcOffset;
3
4 fn main() {
5 SimpleLogger::new()
6 .with_utc_offset(UtcOffset::from_hms(14, 0, 0).unwrap())
7 .init()
8 .unwrap();
9
10 log::warn!("This is an example message using a static UTC offset.");
11 log::info!("Daylight savings or other timezone changes will not be respected.");
12 }