Guest User

Untitled

a guest
Aug 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. int utc;
  2. ...
  3. time_t t = (time_t)utc;
  4.  
  5. #include <chrono>
  6. using namespace std::chrono;
  7.  
  8. int main()
  9. {
  10. int utc = 123456;
  11. system_clock::time_point tp{seconds{utc}};
  12. auto tm = system_clock::to_time_t(tp);
  13. }
Add Comment
Please, Sign In to add comment