date setup et equivalent date windows code example
Example: date setup et equivalent date windows
#include <stdio.h>
#include <windows.h>
int main(void)
{
SYSTEMTIME Time;
GetLocalTime(&Time);
printf("Nous sommes le : %02d/%02d/%04d.\n",
Time.wDay, Time.wMonth, Time.wYear);
printf("Et il est : %02dh %02dmn %02ds %03dms.\n",
Time.wHour, Time.wMinute, Time.wSecond, Time.wMilliseconds);
return 0;
}