debut TP19

This commit is contained in:
2023-11-27 14:59:48 +01:00
parent d8c802ece8
commit d64b38f93d
8 changed files with 42 additions and 6 deletions

11
DEV1.1/TP19/date.c Normal file
View File

@@ -0,0 +1,11 @@
#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;
}