You are here

constant DATE_ISO in Date 5.2

Same name and namespace in other branches
  1. 8 date_api/date_api.module \DATE_ISO
  2. 5 date_api.module \DATE_ISO
  3. 6.2 date_api.module \DATE_ISO
  4. 6 date_api.module \DATE_ISO
  5. 7.3 date_api/date_api.module \DATE_ISO
  6. 7 date_api/date_api.module \DATE_ISO
  7. 7.2 date_api/date_api.module \DATE_ISO

Set up some constants.

Includes standard date types, format strings, strict regex strings for ISO and DATETIME formats (seconds are optional).

The loose regex will find any variety of ISO date and time, with or without time, with or without dashes and colons separating the elements, and with either a 'T' or a space separating date and time.

17 uses of DATE_ISO
DateAPI::testDateAPI in tests/date_api.test
date_convert in ./date_api.module
Date conversion helper function.
date_copy_import_ical_form_submit in date_copy/date_copy.module
date_formatter_process in date/date.module
Helper function for creating formatted date arrays from a formatter.
date_is_valid in ./date_api.module
Functions to test the validity of a date in various formats. Has special case for ISO dates and arrays which can be missing month and day and still be valid.

... See full list

File

./date_api.module, line 20
This module will make the date API available to other modules. Designed to provide a light but flexible assortment of functions and constants, with more functionality in additional files that are not loaded unless other modules specifically include them.

Code

define('DATE_ISO', 'date');