Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <chrono>
- #include <ctime>
- using namespace std;
- int main() {
- auto start = chrono::system_clock::now();
- time_t current_time = chrono::system_clock::to_time_t(start);
- cout << ctime(¤t_time);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement