echo Date (' y-m-d h:i:s ', 3356676867);
Error results: 1940-04-08 11:46:11
Correct for 2076/5/14 18:14:27
How can I output such an answer.
Reply to discussion (solution)
? Test: http://blog.csdn.net/fdipzone/article/details/39457681
$dt = new DateTime (' @3356676867 '); echo $dt->format (' y-m-d h:i:s '); 2076-05-14 10:14:27
? Now, up?? There is a place, so not?
$dt = new DateTime (' @3356676867 '); $tz = Timezone_open (' Asia/shanghai '); $dt->settimezone ($tz); echo $dt->format (' y-m-d h:i:s '); 2076-05-14 18:14:27
Xu Big said yes, encounter problems more Read the Handbook
If there is a need, you can write your own recursive function, when the time is greater than the date () function, minus the number of seconds of 4 years, into the valid range calculated results, and then how many 4 years to add back
Thank you very much for upstairs two, I am a beginner, there are many do not understand