You are here

private static function DatexIntlCalendar::format2pattern in Datex 7.3

3 calls to DatexIntlCalendar::format2pattern()
DatexIntlCalendar::format in src/Datex/DatexIntlCalendar.php
Format this object's date according to format string.
DatexIntlCalendar::parse in src/Datex/DatexIntlCalendar.php
Parses a date string into date and sets this objects date accordingly.
DatexIntlCalendar::toGregorian in src/Datex/DatexIntlCalendar.php

File

src/Datex/DatexIntlCalendar.php, line 84
Implementation of DatexInterface using php-intl.

Class

DatexIntlCalendar
Implementation of DatexInterface using php-intl.

Code

private static function format2pattern($format) {
  $rep = preg_replace(self::$remove_pattern, '', $format);
  $pat = strtr($rep, self::$php2intl_format_map);
  return $pat;
}