You are here

final function DatexPartialImplementation::formatArray in Datex 8

Overrides DatexInterface::formatArray

File

src/Datex/DatexPartialImplementation.php, line 111

Class

DatexPartialImplementation

Namespace

Drupal\datex\Datex

Code

final function formatArray() {
  return [
    'year' => $this
      ->format('Y'),
    'month' => $this
      ->format('n'),
    'day' => $this
      ->format('j'),
    'hour' => $this
      ->format('G'),
    'minute' => $this
      ->format('i'),
    'second' => $this
      ->format('s'),
  ];
}