#include
#include
int main()
{
int i;
time_t the_time;
struct tm *tm_ptr;
(void)time(&the_time);
tm_ptr=gmtime(&the_time);
printf("%d\n",1900+tm_ptr->tm_year);
printf("%d\n",1+tm_ptr->tm_mon);
printf("%d\n",tm_ptr->tm_mday);
printf("%d\n",tm_ptr->tm_hour);
printf("%d\n",tm_ptr->tm_min);
printf("%d\n",tm_ptr->tm_sec);
printf("%d\n",tm_ptr->tm_wday);
printf("%d\n",tm_ptr->tm_isdst);
tm_ptr=localtime(&the_time);
printf("%d\n",1900+tm_ptr->tm_year);
printf("%d\n",1+tm_ptr->tm_mon);
printf("%d\n",tm_ptr->tm_mday);
printf("%d\n",tm_ptr->tm_hour);
printf("%d\n",tm_ptr->tm_min);
printf("%d\n",tm_ptr->tm_sec);
printf("%d\n",tm_ptr->tm_wday);
printf("%d\n",tm_ptr->tm_isdst);
printf("the time is%s\n",asctime(tm_ptr));
exit(0);
}