PHP Timestamp conversion to Date not working -
can please explain me weird behaviour of these timestamps? there's application converts timestamps dates this:
1184947071570 - 07-20-2007 11:57 1190394533377 - 09-21-2007 13:08i cannot access source code of application. got timestamps database, , when convert date using php happens:
1184947071570 - 20 apr 1955 13:17:54 1190394533377 - 27 oct 1991 14:39:45i used code in php:
date("l, j f y h:i:s", $timestamp)
the dates different! how can right dates??
thank you.
the timestamps have include milliseconds. if split timestamps 1000 right times.
echo date('l, j f y h:i:s', 1184947071570 / 1000);
php date timestamp
No comments:
Post a Comment