#include <time.h> #include <stdlib.h> #include <stdio.h> int main(void) { time_t td; putenv("TZ=PST8PDT"); tzset(); time(&td); printf("Current time = %s\n", asctime(localtime(&td))); return 0; }
by: 发表于:2017-08-23 16:27:47 顶(0) | 踩(0) 回复
??
by: 发表于:2017-08-23 16:27:47 顶(0) | 踩(0) 回复
??
回复评论