Skip to content

Instantly share code, notes, and snippets.

@prabindh
Created April 17, 2020 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prabindh/f9d5356fef5689fa2bf4e8eb6b623430 to your computer and use it in GitHub Desktop.
Save prabindh/f9d5356fef5689fa2bf4e8eb6b623430 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <chrono>
#include <ctime>
int main() {
auto timenow = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
std::cout << "It sings at " << ctime(&timenow);
return 0;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment