mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
39 lines
823 B
PHP
Executable File
39 lines
823 B
PHP
Executable File
<?php
|
|
/**
|
|
* Karaka
|
|
*
|
|
* PHP Version 8.1
|
|
*
|
|
* @package phpOMS\Localization
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://karaka.app
|
|
*/
|
|
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://karaka.app
|
|
* @since 1.0.0
|
|
*/
|
|
class ISO8601EnumArray extends EnumArray
|
|
{
|
|
protected static array $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',
|
|
];
|
|
}
|