final function DatexPartialImplementation::xFormatArray in Datex 8
Put all day and time parts in an array, in gregorian.
Return value
array
Overrides DatexInterface::xFormatArray
File
- src/
Datex/ DatexPartialImplementation.php, line 77
Class
Namespace
Drupal\datex\DatexCode
final function xFormatArray() {
return [
'year' => intval($this->origin
->format('Y')),
'month' => intval($this->origin
->format('n')),
'day' => intval($this->origin
->format('j')),
'hour' => intval($this->origin
->format('G')),
'minute' => intval($this->origin
->format('i')),
'second' => intval($this->origin
->format('s')),
];
}