Calling all Drupal developers!
Help us get this on the first page of Digg. DIGG NOW!
Help us get this on the first page of Digg. DIGG NOW!
1.1.4.9 (checked in on 2007/10/26 at 20:12:58 by karens)
A module that will make the date API available to other modules with no dependencies on CCK. To use it, install the module, then add the following code wherever date api functions are needed:
date_load('date.inc');
| Name | Description |
|---|---|
| DATE_DATETIME | |
| DATE_FORMAT_DATETIME | |
| DATE_FORMAT_ICAL | |
| DATE_FORMAT_ISO | |
| DATE_ISO | |
| DATE_REGEX_DATETIME | |
| DATE_REGEX_ISO | |
| DATE_REGEX_LOOSE | |
| DATE_STRING_ISO | |
| DATE_UNIX |
| Name | Description |
|---|---|
| date_api_simpletest | Implementation of hook_simpletest(). |
| date_default_timezone_name | We do this in lots of places, so make it a function. |
| date_load | Helper to include large files only when needed. |
| date_pad | Helper function to left pad date parts with zeros. Provided because this is needed so often with dates. |