GetCurrentDateTime (&d_currenttime);//获取1900.1.1至今的秒数
GetDateTimeElements (d_currenttime,&i_hour,&i_minute,&d_second,&i_month,&i_day,&i_year); //将其转化为年月日时分秒的形式
sprintf(c_hour,"%d",i_hour);//将int类型数据转化为字符串
sprintf(c_minute,"%d",i_minute);
sprintf(c_second,"%.0f",d_second);
strcpy(c_currenttime,strcat(strcat(strcat(strcat(c_hour,c_colon),c_minute),c_colon),c_second));//连接字符串