11 lines
261 B
C
11 lines
261 B
C
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <time.h>
|
|
|
|
int main(void){
|
|
|
|
time_t timestamp = time(NULL);
|
|
struct tm * timeInfos = localtime(×tamp);
|
|
|
|
printf( "%04d/%02d/%02d\n",timeInfos->tm_year+1900, timeInfos->tm_mon+1, timeInfos->tm_mday);
|
|
} |