public function DatexIntlCalendar::format in Datex 7.3
Format this object's date according to format string.
Overrides DatexInterface::format
1 call to DatexIntlCalendar::format()
- DatexIntlCalendar::parse in src/
Datex/ DatexIntlCalendar.php - Parses a date string into date and sets this objects date accordingly.
File
- src/
Datex/ DatexIntlCalendar.php, line 29 - Implementation of DatexInterface using php-intl.
Class
- DatexIntlCalendar
- Implementation of DatexInterface using php-intl.
Code
public function format($format) {
$this->intlFormatter
->setPattern(static::format2pattern($format));
return $this
->formatHook($format, $this->intlFormatter
->format($this
->getTimestamp()));
}