摘要: #include <stdio.h>#include <time.h> void main (){time_t rawtime;struct tm * timeinfo;time ( &rawtime ); //也可以:int seconds = time((time_t *) NULL);获取自19700101开始的秒数timeinfo = localtime ( &rawtime );printf ( "\007The current date/time is: %s", asctime (timeinfo) ); exit(0) 阅读全文
posted @ 2013-04-17 17:27 云山漫卷 阅读(514) 评论(0) 推荐(0) 编辑