Heim  >  Artikel  >  Backend-Entwicklung  >  为什么PHP的时间戳被成为 Unix 时间戳?解决方案

为什么PHP的时间戳被成为 Unix 时间戳?解决方案

WBOY
WBOYOriginal
2016-06-13 09:59:33940Durchsuche

为什么PHP的时间戳被成为 Unix 时间戳?
为什么PHP的时间戳被成为 Unix 时间戳?

------解决方案--------------------
因为他返回的是Unix时间戳格式的时间戳。
--
Unix时间戳是从1970年1月1日(UTC/GMT的午夜)开始所经过的秒数,不考虑闰秒。
------解决方案--------------------

引用楼主 cy14yang 的帖子:
为什么PHP的时间戳被成为 Unix 时间戳?

------解决方案--------------------
探讨
引用楼主 cy14yang 的帖子:
为什么PHP的时间戳被成为 Unix 时间戳?


因为PHP的内部时间是1970年1月1日到现在的秒数,PHP返回的也是Unix时间截(PHP手册),所以就是Unix时间截。

这个问题提得好像不是一个问题????

------解决方案--------------------
都是一样的。
------解决方案--------------------
一个是依据另一个存在而按照已经制定好的规则生成的!
------解决方案--------------------
现在大部份程序都是用Unix 时间戳,PHP其一
编程上很多东西都是从Unix 发展下来的

------解决方案--------------------
我知道楼主的意思,他就是想知道 PHP 为什么非要用 UNIX 时间戳做标准,恩恩……楼上给了答案
------解决方案--------------------
lz是题目打错了一个字而已。。。。成为=“称为”
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn