asimov-clock-module 0.0.1

ASIMOV module for the current date and time.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// This is free and unencumbered software released into the public domain.

use jiff::{Unit, Zoned};

fn main() -> Result<(), jiff::Error> {
    let now = Zoned::now().round(Unit::Second)?;
    println!(
        "The current date and time is {}",
        now.strftime("%A, %B %d, %Y at %T %Z (%:Q)")
    );
    Ok(())
}