phpOMS/Localization/ISO8601EnumArray.php

39 lines
867 B
PHP

<?php
/**
* Orange Management
*
* PHP Version 7.4
*
* @package phpOMS\Localization
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
namespace phpOMS\Localization;
use phpOMS\Stdlib\Base\EnumArray;
/**
* Datetime ISO format.
*
* Careful only (1) is considered as the ISO8601 standard. This file is only supposed to
* contain all plausible datetime strings.
*
* @package phpOMS\Localization
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
class ISO8601EnumArray extends EnumArray
{
protected static $constants = [
1 => 'YYYY-MM-DD hh:mm:ss', // ietf: rfc3339
2 => 'YYYY.MM.DD hh:mm:ss',
3 => 'DD-MM-YYYY hh:mm:ss',
4 => 'DD.MM.YYYY hh:mm:ss',
];
}