You are here

function date_has_time in Date 5

Same name and namespace in other branches
  1. 5.2 date_api.module \date_has_time()
  2. 6.2 date_api.module \date_has_time()
  3. 6 date_api.module \date_has_time()
  4. 7.3 date_api/date_api.module \date_has_time()
  5. 7 date_api/date_api.module \date_has_time()
  6. 7.2 date_api/date_api.module \date_has_time()

a function to figure out if any time data is to be collected or displayed

5 calls to date_has_time()
date_field_settings_form in ./date_admin.inc
date_formats in ./date.inc
date_limit_format in ./date.inc
Rewrite a format string so it only inludes elements from a specified granularity array.
date_text_input in ./date.inc
Text date input form, with optional jscalendar popup
_date_views_handler_filter_date_value_form in ./date_views.inc
Provide a form gadget for dates.

File

./date.inc, line 1612
Date/time API functions

Code

function date_has_time($granularity) {
  if (!is_array($granularity)) {
    $granularity = array();
  }
  return sizeof(array_intersect($granularity, array(
    'H',
    'N',
    'S',
  ))) > 0 ? TRUE : FALSE;
}