Вопрос

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