#include #include #include #include #define TFORMAT 256 int main(void) { time_t temps = time(NULL); struct tm *temps_local = localtime(&temps); char format[TFORMAT]; setlocale(LC_TIME, ""); strftime(format, sizeof format, "%A %d %B %Y - %c", temps_local); printf("%s\n", format); return EXIT_SUCCESS; }