fork download
  1. #include <iostream>
  2. #include <ctime>
  3. using namespace std;
  4.  
  5. int main() {
  6.  
  7. const char *time_details = "16:35:12";
  8. struct tm tm;
  9. strptime(time_details, "%H:%M:%S", &tm);
  10. time_t t = mktime(&tm);
  11. // your code goes here
  12. return 0;
  13. }
Success #stdin #stdout 0s 3268KB
stdin
Standard input is empty
stdout
Standard output is empty