You are here

private static property DatexIntlCalendar::$php2intl_format_map in Datex 8

php's date format modifiers differ from Intl's. This is a mapping of the two.

Type: array

File

src/Datex/DatexIntlCalendar.php, line 75

Class

DatexIntlCalendar

Namespace

Drupal\datex\Datex

Code

private static $php2intl_format_map = [
  'd' => 'dd',
  'D' => 'eee',
  'j' => 'd',
  'l' => 'eeee',
  'N' => 'ee',
  'S' => '',
  'w' => '',
  'z' => '',
  'W' => 'w',
  'm' => 'MM',
  'M' => 'MMM',
  'F' => 'MMMM',
  'n' => 'M',
  't' => '',
  'L' => '',
  'o' => 'YYYY',
  'y' => 'yy',
  'Y' => 'yyyy',
  'a' => 'a',
  'A' => 'a',
  'B' => '',
  'g' => 'h',
  'G' => 'H',
  'h' => 'hh',
  'H' => 'HH',
  'i' => 'mm',
  's' => 'ss',
  'u' => 'SSSSSS',
  'e' => 'VV',
  'I' => '',
  'O' => 'xx',
  'P' => 'xxx',
  'T' => 'v',
  'Z' => '',
  'c' => '',
  'r' => '',
  'U' => '',
  ' ' => ' ',
  '-' => '-',
  '.' => '.',
  ':' => ':',
];