You are here

public function DatexIntlCalendar::format in Datex 8

Overrides DatexInterface::format

1 call to DatexIntlCalendar::format()
DatexIntlCalendar::parse in src/Datex/DatexIntlCalendar.php

File

src/Datex/DatexIntlCalendar.php, line 17

Class

DatexIntlCalendar

Namespace

Drupal\datex\Datex

Code

public function format($format) {
  $this->intlFormatter
    ->setPattern(static::format2pattern($format));
  return $this
    ->formatHook($format, $this->intlFormatter
    ->format($this
    ->getTimestamp()));
}