php echo date ("m/d/Y", mktime (0,0,0,date("m"),(date("d")-4),date("Y")));?php echo date ("m/d/Y", mktime (0,0,0,date("m"),(date("d")-3),date("Y")));?php echo date ("m/d
为此,我使用mktime将tm时间(以格林威治时间为单位)转换为time_t格式。和使用time() api的当前时间。struct tm = x; time_t t1, t2; /* here x will get in GMT format */sec= difftime(t2 , t1);
在使用相同时区的情况下,mktime()会负责转换为本地时间吗?