摘要: void writelog(const char* log) { time_t tDate; struct tm* eventTime; time(&tDate);//得到系统当前时间 //将time_数据类型转换为struct tm结构 eventTime = localtime(&tDate); //年,以1900年作为起始值。如果当前年为1991,则year变量=1 int year = e 阅读全文
posted @ 2019-11-10 16:29 caoruipeng 阅读(1981) 评论(0) 推荐(0)