Skip to content

Instantly share code, notes, and snippets.

@itsfarseen
Created September 5, 2019 14:55
Show Gist options
  • Save itsfarseen/bb01a676a72cb214057d7d59cab51586 to your computer and use it in GitHub Desktop.
Save itsfarseen/bb01a676a72cb214057d7d59cab51586 to your computer and use it in GitHub Desktop.
use chrono;
fn main() {
loop {
println!("The time is {}", chrono::Local::now().naive_local().format("%H:%M"));
std::thread::sleep_ms(1000);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment