Debian Codegraph @

lib/3rdParty/composer/nesbot/carbon/src/Carbon/Constants/Format.php

raw symbols SCIP
1 <?php
2
3 declare(strict_types=1);
4
5 /**
6 * This file is part of the Carbon package.
7 *
8 * (c) Brian Nesbitt <[email protected]>
9 *
10 * For the full copyright and license information, please view the LICENSE
11 * file that was distributed with this source code.
12 */
13
14 namespace Carbon\Constants;
15
16 interface Format
17 {
18 /**
19 * RFC7231 DateTime format.
20 *
21 * @var string
22 */
23 public const RFC7231_FORMAT = 'D, d M Y H:i:s \G\M\T';
24
25 /**
26 * Default format to use for __toString method when type juggling occurs.
27 *
28 * @var string
29 */
30 public const DEFAULT_TO_STRING_FORMAT = 'Y-m-d H:i:s';
31
32 /**
33 * Format for converting mocked time, includes microseconds.
34 *
35 * @var string
36 */
37 public const MOCK_DATETIME_FORMAT = 'Y-m-d H:i:s.u';
38
39 /**
40 * Pattern detection for ->isoFormat and ::createFromIsoFormat.
41 *
42 * @var string
43 */
44 public const ISO_FORMAT_REGEXP = '(O[YMDHhms]|[Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY?|g{1,5}|G{1,5}|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?)';
45 }