time_t lt; /*define a longint time varible*/ lt=time(NULL);/*system time and date*/ printf(ctime(<)); /*english format output*/ printf(asctime(localtime(<)));/*tranfer to tm*/ printf(asctime(gmtime(<))); /*tranfer to Greenwich time*/是不是有符合你要求的格式的
GetLocalTime()后,根据SYSTEMTIME结构各项格式化为需要的字符串,最后一个时区,用GetTimeZoneInformation()获取。
lt=time(NULL);/*system time and date*/
printf(ctime(<)); /*english format output*/
printf(asctime(localtime(<)));/*tranfer to tm*/
printf(asctime(gmtime(<))); /*tranfer to Greenwich time*/是不是有符合你要求的格式的