Files
.vscode
DEV IHM
DEV1.1
TD
TP01
TP02
TP03
TP04
TP05
TP06
TP07
TP08
TP09
TP10
TP11
complexes.c
date.c
groupe.c
tailles.c
TP12
TP13
TP14
TP15
random
DEV2.1
DEV2.3
DEV3.1
DEV3.2
DEV4.1
DEV4.5
Junit4Exemples
WEBBE
.gitignore
Gantt.gan
README.md
projet.jar
DEV/DEV1.1/TP11/date.c

14 lines
289 B
C
Raw Normal View History

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(int argc, char const *argv[])
{
time_t timestamp = time(NULL);
struct tm * timeInfos = localtime(& timestamp);
printf("%04d/%02d/%02d\n", timeInfos->tm_year+1900, timeInfos->tm_mon+1,timeInfos->tm_mday);
return 0;
}