time_t tm;
int year,mon,day;
time(&tm);
struct tm *local = localtime(&tm);
year=local->tm_year+1900;
mon=local->tm_mon+1;
day=local->tm_mday;
time_t tm;
int year,mon,day;
time(&tm);
struct tm *local = localtime(&tm);
year=local->tm_year+1900;
mon=local->tm_mon+1;
day=local->tm_mday;