You are here

function _calendar_systems_get_date_format in Calendar Systems 6.3

Same name and namespace in other branches
  1. 8 calendar_systems.helpers.inc \_calendar_systems_get_date_format()
  2. 6 calendar_systems.module \_calendar_systems_get_date_format()
  3. 7.3 calendar_systems.module \_calendar_systems_get_date_format()
  4. 7 calendar_systems.helpers.inc \_calendar_systems_get_date_format()
  5. 7.2 calendar_systems.helpers.inc \_calendar_systems_get_date_format()

Helper function

Return value

A List of valid date format characters

2 calls to _calendar_systems_get_date_format()
_calendar_systems_fix_by_granularity in ./calendar_systems.module
Helper function
_calendar_systems_fix_whitespace in ./calendar_systems.module
Helper function

File

./calendar_systems.module, line 534

Code

function _calendar_systems_get_date_format() {
  $chars = array(
    'L' => 'year',
    'o' => 'year',
    'Y' => 'year',
    'y' => 'year',
    'F' => 'month',
    'm' => 'month',
    'M' => 'month',
    'n' => 'month',
    't' => 'month',
    'd' => 'day',
    'D' => 'day',
    'j' => 'day',
    'l' => 'day',
    'N' => 'day',
    'S' => 'day',
    'w' => 'day',
    'z' => 'day',
    'a' => 'hour',
    'A' => 'hour',
    'B' => 'hour',
    'g' => 'hour',
    'G' => 'hour',
    'h' => 'hour',
    'H' => 'hour',
    'i' => 'minute',
    's' => 'second',
    'u' => 'second',
    'e' => 'hour',
    'O' => 'hour',
    'P' => 'hour',
    'T' => 'hour',
    'Z' => 'second',
    'I' => 'day',
    'c' => '',
    'r' => '',
    'U' => '',
  );
  return $chars;
}