Réponse acceptée !
#include <stdio.h>
#include <time.h>
#include <windows.h>
int main(void)
{
char buf[16];
time_t ltime;
struct tm *tm;
SYSTEMTIME st;
time(<ime);
tm = localtime(<ime);
//Exemple 1
_strtime(buf);
printf("%s\n", buf);
//Exemple 2
strftime(buf, sizeof buf, "%H:%M:%S", tm);
printf("%s\n", buf);
//Exemple 3
sprintf(buf, "%02d:%02d:%02d", tm->tm_hour, tm->tm_min, tm->tm_sec);
printf("%s\n", buf);
//Exemple 4
GetTimeFormat(LOCALE_SYSTEM_DEFAULT, 0, 0, 0, buf, sizeof buf);
printf("%s\n", buf);
//Exemple 5
GetLocalTime(&st);
sprintf(buf, "%02d:%02d:%02d", st.wHour, st.wMinute, st.wSecond);
printf("%s\n", buf);
//etc...
return 0;
}