You are here

constant DATE_REGEX_LOOSE in Date 6.2

Same name and namespace in other branches
  1. 5.2 date_api.module \DATE_REGEX_LOOSE
  2. 5 date_api.module \DATE_REGEX_LOOSE
  3. 6 date_api.module \DATE_REGEX_LOOSE
  4. 7.3 date_api/date_api.module \DATE_REGEX_LOOSE
  5. 7 date_api/date_api.module \DATE_REGEX_LOOSE
  6. 7.2 date_api/date_api.module \DATE_REGEX_LOOSE
5 uses of DATE_REGEX_LOOSE
date_convert in ./date_api.module
Date conversion helper function.
date_datetime2timestamp in date_php4/date_php4.inc
Create a timestamp from a datetime value.
date_ical_parse_date in ./date_api_ical.inc
Parses a ical date element.
date_iso_array in ./date_api.module
Create an array of date parts from an ISO date.
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.

File

./date_api.module, line 36
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_REGEX_LOOSE', '/(\\d{4})-?(\\d{1,2})-?(\\d{1,2})([T\\s]?(\\d{2}):?(\\d{2}):?(\\d{2})?(\\.\\d+)?(Z|[\\+\\-]\\d{2}:?\\d{2})?)?/');