Guest User

Untitled

a guest
Dec 13th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <iostream>
  2. #include <chrono>
  3. #include <ctime>
  4.  
  5. void now()
  6. {
  7. auto now = std::chrono::system_clock::now();
  8. std::time_t now_time = std::chrono::system_clock::to_time_t(now);
  9. std::cout << "now is: " << std::ctime(&now_time);
  10. }
  11. int main()
  12. {
  13. now();
  14.  
  15. }
Add Comment
Please, Sign In to add comment