debut TP19
This commit is contained in:
11
DEV1.1/TP19/date.c
Normal file
11
DEV1.1/TP19/date.c
Normal 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(×);
|
||||
printf("La date est: %02d - %02d - %02d\n", timeI->tm_year + 1900,timeI->tm_mon, timeI->tm_mday);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Reference in New Issue
Block a user