
gmstrftime
(PHP 4, PHP 5)
gmstrftime —
根据区域设置格式化 GMT/UTC 时间/日期
说明
string gmstrftime
( string $format
[, int $timestamp
] )
和 strftime()
的行为相同,只除了返回时间是格林威治标准时(GMT)。例如,当在东部标准时(EST,GMT
-500)运行时,下面第一行显示“Dec 31 1998 20:00:00”,而第二行显示“Jan 01 1999
01:00:00”。
Example #1 gmstrftime() 例子
setlocale(LC_TIME,
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...