雪冰

博客园 首页 联系 订阅 管理

#include<time.h>
#include<stdio.h>
int main()
{
	char str[50];
	struct tm *p;
	time_t lt;
	lt=time(NULL);
	p=localtime(<);

	strftime(str,50,"%z %c %A %a",p);
	printf(str);
	return 0;
}

posted on 2010-04-19 21:46  雪冰  阅读(1068)  评论(0)    收藏  举报