xref: /PHP-8.2/ext/calendar/calendar.stub.php (revision e328c683)
1<?php
2
3/** @generate-class-entries */
4
5/**
6 * @var int
7 * @cvalue CAL_GREGORIAN
8 */
9const CAL_GREGORIAN = UNKNOWN;
10/**
11 * @var int
12 * @cvalue CAL_JULIAN
13 */
14const CAL_JULIAN = UNKNOWN;
15/**
16 * @var int
17 * @cvalue CAL_JEWISH
18 */
19const CAL_JEWISH = UNKNOWN;
20/**
21 * @var int
22 * @cvalue CAL_FRENCH
23 */
24const CAL_FRENCH = UNKNOWN;
25/**
26 * @var int
27 * @cvalue CAL_NUM_CALS
28 */
29const CAL_NUM_CALS = UNKNOWN;
30
31/**
32 * @var int
33 * @cvalue CAL_DOW_DAYNO
34 */
35const CAL_DOW_DAYNO = UNKNOWN;
36/**
37 * @var int
38 * @cvalue CAL_DOW_SHORT
39 */
40const CAL_DOW_SHORT = UNKNOWN;
41/**
42 * @var int
43 * @cvalue CAL_DOW_LONG
44 */
45const CAL_DOW_LONG = UNKNOWN;
46
47/**
48 * @var int
49 * @cvalue CAL_MONTH_GREGORIAN_SHORT
50 */
51const CAL_MONTH_GREGORIAN_SHORT = UNKNOWN;
52/**
53 * @var int
54 * @cvalue CAL_MONTH_GREGORIAN_LONG
55 */
56const CAL_MONTH_GREGORIAN_LONG = UNKNOWN;
57/**
58 * @var int
59 * @cvalue CAL_MONTH_JULIAN_SHORT
60 */
61const CAL_MONTH_JULIAN_SHORT = UNKNOWN;
62/**
63 * @var int
64 * @cvalue CAL_MONTH_JULIAN_LONG
65 */
66const CAL_MONTH_JULIAN_LONG = UNKNOWN;
67/**
68 * @var int
69 * @cvalue CAL_MONTH_JEWISH
70 */
71const CAL_MONTH_JEWISH = UNKNOWN;
72/**
73 * @var int
74 * @cvalue CAL_MONTH_FRENCH
75 */
76const CAL_MONTH_FRENCH = UNKNOWN;
77
78/**
79 * @var int
80 * @cvalue CAL_EASTER_DEFAULT
81 */
82const CAL_EASTER_DEFAULT = UNKNOWN;
83/**
84 * @var int
85 * @cvalue CAL_EASTER_ROMAN
86 */
87const CAL_EASTER_ROMAN = UNKNOWN;
88/**
89 * @var int
90 * @cvalue CAL_EASTER_ALWAYS_GREGORIAN
91 */
92const CAL_EASTER_ALWAYS_GREGORIAN = UNKNOWN;
93/**
94 * @var int
95 * @cvalue CAL_EASTER_ALWAYS_JULIAN
96 */
97const CAL_EASTER_ALWAYS_JULIAN = UNKNOWN;
98
99/**
100 * @var int
101 * @cvalue CAL_JEWISH_ADD_ALAFIM_GERESH
102 */
103const CAL_JEWISH_ADD_ALAFIM_GERESH = UNKNOWN;
104/**
105 * @var int
106 * @cvalue CAL_JEWISH_ADD_ALAFIM
107 */
108const CAL_JEWISH_ADD_ALAFIM = UNKNOWN;
109/**
110 * @var int
111 * @cvalue CAL_JEWISH_ADD_GERESHAYIM
112 */
113const CAL_JEWISH_ADD_GERESHAYIM = UNKNOWN;
114
115function cal_days_in_month(int $calendar, int $month, int $year): int {}
116
117/**
118 * @return array<string, int|string|null>
119 * @refcount 1
120 */
121function cal_from_jd(int $julian_day, int $calendar): array {}
122
123/**
124 * @return array<int|string, int|string|array>
125 * @refcount 1
126 */
127function cal_info(int $calendar = -1): array {}
128
129function cal_to_jd(int $calendar, int $month, int $day, int $year): int {}
130
131function easter_date(?int $year = null, int $mode = CAL_EASTER_DEFAULT): int {}
132
133function easter_days(?int $year = null, int $mode = CAL_EASTER_DEFAULT): int {}
134
135function frenchtojd(int $month, int $day, int $year): int {}
136
137function gregoriantojd(int $month, int $day, int $year): int {}
138
139function jddayofweek(int $julian_day, int $mode = CAL_DOW_DAYNO): int|string {}
140
141function jdmonthname(int $julian_day, int $mode): string {}
142
143function jdtofrench(int $julian_day): string {}
144
145function jdtogregorian(int $julian_day): string {}
146
147function jdtojewish(int $julian_day, bool $hebrew = false, int $flags = 0): string {}
148
149function jdtojulian(int $julian_day): string {}
150
151function jdtounix(int $julian_day): int {}
152
153function jewishtojd(int $month, int $day, int $year): int {}
154
155function juliantojd(int $month, int $day, int $year): int {}
156
157function unixtojd(?int $timestamp = null): int|false {}
158