2009年12月21日
摘要: //方案— 优点:仅使用C标准库;缺点:只能精确到秒级 #include <time.h> #include <stdio.h> int main( void ) { time_t t = time(0); char tmp[64]; strftime( tmp, sizeof(tmp), "%Y/%m/%d %X %A 本年第%j天 %z",localtime... 阅读全文
posted @ 2009-12-21 09:54 Kevin Johnson 阅读(1160) 评论(0) 推荐(0) 编辑