Advertisement
Guest User

Untitled

a guest
Mar 13th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. std::string stime() {
  2. std::chrono::system_clock::time_point now = std::chrono::system_clock::now();
  3. auto now_c = std::chrono::system_clock::to_time_t(now);
  4. auto s = std::put_time(std::localtime(&now_c), "%F %T");
  5. std::stringstream ss;
  6. ss << s;
  7. return ss.str();
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement