11 lines
261 B
C
11 lines
261 B
C
|
|
#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;
|
||
|
|
}
|