Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int utc;
- ...
- time_t t = (time_t)utc;
- #include <chrono>
- using namespace std::chrono;
- int main()
- {
- int utc = 123456;
- system_clock::time_point tp{seconds{utc}};
- auto tm = system_clock::to_time_t(tp);
- }
Add Comment
Please, Sign In to add comment