function date_granularity_names in Date 5
Same name and namespace in other branches
- 5.2 date_api.module \date_granularity_names()
- 6.2 date_api.module \date_granularity_names()
- 6 date_api.module \date_granularity_names()
- 7.3 date_api/date_api.module \date_granularity_names()
- 7 date_api/date_api.module \date_granularity_names()
- 7.2 date_api/date_api.module \date_granularity_names()
Array of granularity options and their lables
Return value
array
1 call to date_granularity_names()
File
- ./
date.inc, line 2277 - Date/time API functions
Code
function date_granularity_names() {
return array(
'Y' => t('Year'),
'M' => t('Month'),
'D' => t('Day'),
'H' => t('Hour'),
'N' => t('Minute'),
'S' => t('Second'),
);
}