News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Derick Rethans' Blog:
Unix Epoch and PHP's calendar system
November 12, 2009 @ 10:44:51

Based on a fix for a recent bug, Derick Rethans wanted to clear up something about the Unix Epoc's definition and how it relates to the UTC time zone.

While right now it is proper to define the Unix Epoch at "1970-01-01 00:00:00 UTC", UTC wasn't actually defined until 1972. So it would be more correct to define the Unix Epoch as "the number of seconds elapsed since midnight proleptic Coordinated Universal Time (UTC) of January 1, 1970, not counting leap seconds." (from Wikipedia).

He talks about the calendar PHP uses internally and how dates predating it's use don't make much sense either (as well as the modified version PHP uses that includes "year zero").

2 comments voice your opinion now!
unix epoch datetime calendar utc


blog comments powered by Disqus

Similar Posts

Paul Reinheimer's Blog: Funcaday

DZone.com: Date and time in PHP 5

Wez Furlong\'s Blog: Calling SQLBindParameter and avoiding a datetime overflow.

PHPMaster.com: Working with Dates and Times in PHP and MySQL

Derick Rethans' Blog: Distributions: Please Don't Cripple PHP or Red Hat: Stop Fucking Around


Community Events





Don't see your event here?
Let us know!


unittest symfony framework series api introduction conference interview voicesoftheelephpant version laravel release threedevsandamaybe composer list opinion podcast community configure language

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework