LOADING STUFF...

PHP:gmstrftime()的用法_Date Time函数

技术教程1天前更新 北陌
28 0 0

PHP:gmstrftime()的用法_Date Time函数

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,

© 版权声明

相关文章

暂无评论

暂无评论...