Files
DEV/DEV1.1/TP19/date.c

11 lines
261 B
C
Raw Normal View History

2023-11-27 14:59:48 +01:00
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(void){
time_t times =time(NULL);
struct tm *timeI=localtime(&times);
printf("La date est: %02d - %02d - %02d\n", timeI->tm_year + 1900,timeI->tm_mon, timeI->tm_mday);
return EXIT_SUCCESS;
}