how would i access tm_year in this program
Code:#include <time.h> #include <stdio.h> int main( ) { time_t today; char *now, buff[20]; struct tm* gettime; time( &today ); gettime = localtime( &today ); now = asctime(( const struct tm* ) gettime ); strftime(buff, 80, now, gettime); printf( "%s %d", buff, gettime ); getch( ); }