nclock 1.0.0

CLI app to print the current time.
1
2
3
4
5
6
7
8
9
10
11
12
use chrono::Local;
use colored::Colorize;

fn main() {
    let local_time = Local::now();

    let date = local_time.format("%Y/%m/%d").to_string().bright_blue();
    let time = local_time.format("%H:%M:%S").to_string().blue();
    let offset = local_time.format("%:z").to_string().blue();

    println!("It's {time} of {date}, with a timezone offset of {offset}");
}