Question

I have a webservice returning timestamps in Gregorian seconds.

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

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top