I have a webservice returning timestamps in Gregorian seconds.

How do I convert Gregorian date (in seconds) to unix timestamp in PHP?

有帮助吗?

解决方案

subtract unix epoch(62167219200) from the Gregorian seconds returned by the web service. see here

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top