#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; }
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3