You are here

function date_granularity_names in Date 5

Same name and namespace in other branches
  1. 5.2 date_api.module \date_granularity_names()
  2. 6.2 date_api.module \date_granularity_names()
  3. 6 date_api.module \date_granularity_names()
  4. 7.3 date_api/date_api.module \date_granularity_names()
  5. 7 date_api/date_api.module \date_granularity_names()
  6. 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()
date_field_settings_form in ./date_admin.inc

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'),
  );
}