function date_granularity_parts in Date 5
Array of granularity keys and the names of the related array parts.
Return value
array
File
- ./
date.inc, line 2288 - Date/time API functions
Code
function date_granularity_parts() {
return array(
'Y' => 'year',
'M' => 'mon',
'D' => 'mday',
'H' => 'hours',
'N' => 'minutes',
'S' => 'seconds',
);
}