close

 


例子
輸出strftime() 和gmstrftime() 的結果:
<?php
echo(strftime("%b %d %Y %X", mktime(20,0,0,12,31,98)));
echo(gmstrftime("%b %d %Y %X", mktime(20,0,0,12,31,98)));

//輸出當前日期、時間和時區
echo(gmstrftime("It is %a on %b %d, %Y, %X time zone: %Z",time()));
?>
輸出:
Dec 31 1998 20:00:00
Dec 31 1998 19:00:00
It is Wed on Jan 25, 2006, 11:32:10 time zone: W. Europe Standard Time

arrow
arrow
    全站熱搜

    stockwfj3 發表在 痞客邦 留言(0) 人氣()