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

David Goodwin's Blog:
PHP DateTime vs mktime / strtotime in Propel
Sep 20, 2007 @ 17:52:00

David Goodwin, a developer on the Propel project has posted about a new feature included in the latest PHP version, the DateTime functionality, and how they put it to use in Propel.

One of the relatively new features in PHP 5.2, is the DateTime class/functions. It has a few useful functions (date_parse, date_date_set, date_time_set etc) which make dealing with dates and times easier (date_parse provides some useful error info too).

He also mentions the ability of the functionality to handles dates before 1970 or after 2038, a common problem with PHP's native date functionality. He illustrates how it's useful by describing the change they made in Propel store DateTime objects instead of the integer timestamps like before.

tagged: datetime date time functionality propel mktime datetime date time functionality propel mktime

Link:

David Goodwin's Blog:
PHP DateTime vs mktime / strtotime in Propel
Sep 20, 2007 @ 17:52:00

David Goodwin, a developer on the Propel project has posted about a new feature included in the latest PHP version, the DateTime functionality, and how they put it to use in Propel.

One of the relatively new features in PHP 5.2, is the DateTime class/functions. It has a few useful functions (date_parse, date_date_set, date_time_set etc) which make dealing with dates and times easier (date_parse provides some useful error info too).

He also mentions the ability of the functionality to handles dates before 1970 or after 2038, a common problem with PHP's native date functionality. He illustrates how it's useful by describing the change they made in Propel store DateTime objects instead of the integer timestamps like before.

tagged: datetime date time functionality propel mktime datetime date time functionality propel mktime

Link:


Trending Topics: