Im kinda stymied by the fact that _strtime is in the 24 hour format.. Can somebody point out how to convert this to 12 hour format?
1 2 3 4 5 6 7 8 9 10 11 12
/* Turbo c++ is my designated compiler */
#include <iostream.h>
#include <time.h>
int main (){
char timeStr [9];
_strtime(timeStr);
//conver to 12 hour format here
cout<<"Time is: "<<timeStr;
return 0;
}