CyberN00b

Untitled

May 15th, 2023
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. const char *time_details = "16:35:12";
  2. struct tm tm;
  3. strptime(time_details, "%H:%M:%S", &tm);
  4. time_t t = mktime(&tm); // t is now your desired time_t
Add Comment
Please, Sign In to add comment