New Date Functions in PHP 5.3

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
KarenS's picture

New Date functions/classes in PHP 5.3

DateTime::createFromFormat
date_create_from_format

DateTime::add
date_add

DateTime::sub
date_sub

DateTime::diff
date_diff

DateTime::getLastErrors
date_get_last_errors

DateTime::getTimestamp
date_timestamp_get

DateTime::setTimestamp
date_timestamp_set

The DateInterval class
DateInterval::__construct

DateInterval::createFromDateString
date_interval_create_from_date_string

DateInterval::format
date_interval_format

The DatePeriod class
DatePeriod::__construct

DateTimeZone::getLocation
timezone_location_get

Comments

Date is critical

scotwith1t's picture

One of the first 10 modules I add along with Views (and dependencies), Reference, Token, Pathauto and others. Absolutely critical module and hope to see it in core for D8! Thanks for all your hard work over the years KarenS!

Date API

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: