What happened on Dec 31 1969 at 7:00 PM

后端 未结 1 584
梦谈多话
梦谈多话 2021-02-11 21:28

Every time in PHP when I make a variable such as this one:

$date = strtotime($row[\'date\']);
$date = date(\"M d Y \\a\\\\t g:i A\", $date); // Mmm dd YYYY at h:         


        
相关标签:
1条回答
  • 2021-02-11 21:46

    The Unix epoch is the time 00:00:00 UTC on 1 January 1970. This is the reference point for all time stamps. When you use PHP's date/time functions, you're always working with the number of seconds since the epoch. Time 0 is the epoch, and you (or your web server) must be on the east coast of the US, which is 5 hours behind UTC time.

    0 讨论(0)
提交回复
热议问题