Re: [nyphp-talk] Date conversion from Java timestamp to PHP date

2011-03-14 Thread Rob
definitely thanks again, and sorry for the brain fart moment :) ~Rob -Original Message- From: Donald J. Organ IV To: NYPHP Talk Sent: Mon, Mar 14, 2011 1:35 pm Subject: Re: [nyphp-talk] Date conversion from Java timestamp to PHP date Another note I believe epoch time is

Re: [nyphp-talk] Date conversion from Java timestamp to PHP date

2011-03-14 Thread Rob
Date conversion from Java timestamp to PHP date I believe java is epoch time and is returned in milliseconds so just take that value and divide it by 1000 then use that in your date function $seconds = $java_time / 1000; $date = date('Y-m-d H:i:s', $seconds ); From:

Re: [nyphp-talk] Date conversion from Java timestamp to PHP date

2011-03-14 Thread Donald J. Organ IV
Another note I believe epoch time is always GMT based so you may need to convert this to your current Time Zone. - Original Message - From: "Donald J. Organ IV" To: "NYPHP Talk" Sent: Monday, March 14, 2011 1:34:34 PM Subject: Re: [nyphp-talk] Date conversion

Re: [nyphp-talk] Date conversion from Java timestamp to PHP date

2011-03-14 Thread Donald J. Organ IV
I believe java is epoch time and is returned in milliseconds so just take that value and divide it by 1000 then use that in your date function $seconds = $java_time / 1000; $date = date('Y-m-d H:i:s', $seconds ); - Original Message - From: "Rob" To: talk@lists.nyphp.o