Debian Codegraph @

lib/3rdParty/composer/nesbot/carbon/src/Carbon/Constants/UnitValue.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 UnitValue
17 {
18 /**
19 * The day constants.
20 */
21 public const SUNDAY = 0;
22 public const MONDAY = 1;
23 public const TUESDAY = 2;
24 public const WEDNESDAY = 3;
25 public const THURSDAY = 4;
26 public const FRIDAY = 5;
27 public const SATURDAY = 6;
28
29 /**
30 * The month constants.
31 * These aren't used by Carbon itself but exist for
32 * convenience's sake alone.
33 */
34 public const JANUARY = 1;
35 public const FEBRUARY = 2;
36 public const MARCH = 3;
37 public const APRIL = 4;
38 public const MAY = 5;
39 public const JUNE = 6;
40 public const JULY = 7;
41 public const AUGUST = 8;
42 public const SEPTEMBER = 9;
43 public const OCTOBER = 10;
44 public const NOVEMBER = 11;
45 public const DECEMBER = 12;
46
47 /**
48 * Number of X in Y.
49 */
50 public const YEARS_PER_MILLENNIUM = 1_000;
51 public const YEARS_PER_CENTURY = 100;
52 public const YEARS_PER_DECADE = 10;
53 public const MONTHS_PER_YEAR = 12;
54 public const MONTHS_PER_QUARTER = 3;
55 public const QUARTERS_PER_YEAR = 4;
56 public const WEEKS_PER_YEAR = 52;
57 public const WEEKS_PER_MONTH = 4;
58 public const DAYS_PER_YEAR = 365;
59 public const DAYS_PER_WEEK = 7;
60 public const HOURS_PER_DAY = 24;
61 public const MINUTES_PER_HOUR = 60;
62 public const SECONDS_PER_MINUTE = 60;
63 public const MILLISECONDS_PER_SECOND = 1_000;
64 public const MICROSECONDS_PER_MILLISECOND = 1_000;
65 public const MICROSECONDS_PER_SECOND = 1_000_000;
66 }