|
Thank you all, I have found the answer
# include <stdio.h>
# include <time.h>
viod printtime(viod)
{
struct tm* ptime;
time_t ltime;
time (<ime);
ptime = localtime (<ime );
printf( "%02d:%02d:%02d",
ptime->tm_hour,ptime->tm_min,ptime->tm_sec );
}; |
|