NYCPHP Meetup

NYPHP.org

[nycphp-talk] Date conversion from Java timestamp to PHP date

Rob y2rob at aol.com
Mon Mar 14 13:23:48 EDT 2011


 

 Hello,
I was wondering if anyone has a way to convert a Java timestamp into a proper PHP date format.  I am plugging into an API, and what i thought was a Unix timestamp appears to be a Java timestamp, which there is a difference in the conversion.  All posts I've read so far says, there a difference with milliseconds, but I was wondering if anyone else has found a solution to this.

Forums say to plug the timestamp into the normal PHP date() function, but though I get a proper month and day, the year is really obviously wrong.

Thanks in advance,
~Rob


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20110314/ba207cb7/attachment.html>


More information about the talk mailing list