使用 gmdate 给出了错误的日期
我正在制作一个 mediawiki 扩展,试图打印文章时间戳
$timestamp = $myArticle->getTimestamp();
$time = gmdate("D, d M Y H:i:s",$timestamp);
,问题是时间戳是:20110807230546,
但给定时间是:2038 年 1 月 19 日星期二 03:14:07
为什么?
i am making a mediawiki extension , trying to print the Article timestamp
$timestamp = $myArticle->getTimestamp();
$time = gmdate("D, d M Y H:i:s",$timestamp);
the problem that the timestamp is : 20110807230546
but the given time is : Tue, 19 Jan 2038 03:14:07
why ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用
wfTimestamp()
:Use
wfTimestamp()
: