You are here

constant DATE_ISO in Date 8

Same name and namespace in other branches
  1. 5.2 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.

3 uses of DATE_ISO
DateSqlHandler::sql_field in date_api/lib/Drupal/date_api/DateSqlHandler.php
Helper function to create cross-database SQL dates.
date_type_format in date_api/date_api.module
Helper function for getting the format string for a date type.
_date_views_fields in date_views/includes/date_views_fields.inc
Identify all potential date/timestamp fields.

File

date_api/date_api.module, line 113
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

const DATE_ISO = 'date';