The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Get The Current DateTime In Rust

TODO: Pull subtitle into page object
Code
#!/usr/bin/env rust-script

//! ```cargo
//! [dependencies]
//! chrono = "0.4.22"
//! ```
//!


use chrono::offset::Utc;

fn main() {
    let dt = Utc::now();
    dbg!(dt);
}

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Get The Current DateTime In Rust

-- code

#!/usr/bin/env rust-script

//! ```cargo
//! [dependencies]
//! chrono = "0.4.22"
//! ```
//!


use chrono::offset::Utc;

fn main() {
    let dt = Utc::now();
    dbg!(dt);
}


-- categories
-- Rust 

-- metadata
-- date: 2023-08-21 23:17:27
-- id: 2uk33ocs
-- site: aws
-- type: snippet 
-- status: draft