You are here

function date_nongranularity_array in Date 5

An difference array of granularity elements that are NOT in the granularity array.

2 calls to date_nongranularity_array()
date_strip_granularity in ./date.inc
Strip date parts that are not in the granularity array out of a date format string.
date_unset_granularity in ./date.inc
Unset undesired date part values.

File

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

Code

function date_nongranularity_array($granularity) {
  return array_diff(array(
    'Y',
    'M',
    'D',
    'H',
    'N',
    'S',
  ), $granularity);
}