/*设置系统日期 <time.h>头文件*/
struct tm *tm_ptr;
time_t the_time;
time(&the_time);
tm_ptr=localtime(&the_time);
sprintf(buf2,"%d-%d-%d",tm_ptr->tm_year+1900,tm_ptr->tm_mon+1,tm_ptr->tm_mday); //获取系统日期
/*设置系统日期 <time.h>头文件*/
struct tm *tm_ptr;
time_t the_time;
time(&the_time);
tm_ptr=localtime(&the_time);
sprintf(buf2,"%d-%d-%d",tm_ptr->tm_year+1900,tm_ptr->tm_mon+1,tm_ptr->tm_mday); //获取系统日期