Debian Codegraph @

codelitephp/resources/cc/calendar.php

raw
1 <?php
2
3 // Start of calendar v.
4
5 /**
6 * Converts Julian Day Count to Gregorian date
7 * @link http://www.php.net/manual/en/function.jdtogregorian.php
8 * @param julianday int <p>
9 * A julian day number as integer
10 * </p>
11 * @return string The gregorian date as a string in the form "month/day/year"
12 */
13 function jdtogregorian ($julianday) {}
14
15 /**
16 * Converts a Gregorian date to Julian Day Count
17 * @link http://www.php.net/manual/en/function.gregoriantojd.php
18 * @param month int <p>
19 * The month as a number from 1 (for January) to 12 (for December)
20 * </p>
21 * @param day int <p>
22 * The day as a number from 1 to 31
23 * </p>
24 * @param year int <p>
25 * The year as a number between -4714 and 9999
26 * </p>
27 * @return int The julian day for the given gregorian date as an integer.
28 */
29 function gregoriantojd ($month, $day, $year) {}
30
31 /**
32 * Converts a Julian Day Count to a Julian Calendar Date
33 * @link http://www.php.net/manual/en/function.jdtojulian.php
34 * @param julianday int <p>
35 * A julian day number as integer
36 * </p>
37 * @return string The julian date as a string in the form "month/day/year"
38 */
39 function jdtojulian ($julianday) {}
40
41 /**
42 * Converts a Julian Calendar date to Julian Day Count
43 * @link http://www.php.net/manual/en/function.juliantojd.php
44 * @param month int <p>
45 * The month as a number from 1 (for January) to 12 (for December)
46 * </p>
47 * @param day int <p>
48 * The day as a number from 1 to 31
49 * </p>
50 * @param year int <p>
51 * The year as a number between -4713 and 9999
52 * </p>
53 * @return int The julian day for the given julian date as an integer.
54 */
55 function juliantojd ($month, $day, $year) {}
56
57 /**
58 * Converts a Julian day count to a Jewish calendar date
59 * @link http://www.php.net/manual/en/function.jdtojewish.php
60 * @param juliandaycount int
61 * @param hebrew bool[optional] <p>
62 * If the hebrew parameter is set to true, the
63 * fl parameter is used for Hebrew, string based,
64 * output format.
65 * </p>
66 * @param fl int[optional] <p>
67 * The available formats are:
68 * CAL_JEWISH_ADD_ALAFIM_GERESH,
69 * CAL_JEWISH_ADD_ALAFIM,
70 * CAL_JEWISH_ADD_GERESHAYIM.
71 * </p>
72 * @return string The jewish date as a string in the form "month/day/year"
73 */
74 function jdtojewish ($juliandaycount, $hebrew = null, $fl = null) {}
75
76 /**
77 * Converts a date in the Jewish Calendar to Julian Day Count
78 * @link http://www.php.net/manual/en/function.jewishtojd.php
79 * @param month int <p>
80 * The month as a number from 1 to 13
81 * </p>
82 * @param day int <p>
83 * The day as a number from 1 to 30
84 * </p>
85 * @param year int <p>
86 * The year as a number between 1 and 9999
87 * </p>
88 * @return int The julian day for the given jewish date as an integer.
89 */
90 function jewishtojd ($month, $day, $year) {}
91
92 /**
93 * Converts a Julian Day Count to the French Republican Calendar
94 * @link http://www.php.net/manual/en/function.jdtofrench.php
95 * @param juliandaycount int
96 * @return string The french revolution date as a string in the form "month/day/year"
97 */
98 function jdtofrench ($juliandaycount) {}
99
100 /**
101 * Converts a date from the French Republican Calendar to a Julian Day Count
102 * @link http://www.php.net/manual/en/function.frenchtojd.php
103 * @param month int <p>
104 * The month as a number from 1 (for Vendémiaire) to 13 (for the period of 5-6 days at the end of each year)
105 * </p>
106 * @param day int <p>
107 * The day as a number from 1 to 30
108 * </p>
109 * @param year int <p>
110 * The year as a number between 1 and 14
111 * </p>
112 * @return int The julian day for the given french revolution date as an integer.
113 */
114 function frenchtojd ($month, $day, $year) {}
115
116 /**
117 * Returns the day of the week
118 * @link http://www.php.net/manual/en/function.jddayofweek.php
119 * @param julianday int <p>
120 * A julian day number as integer
121 * </p>
122 * @param mode int[optional] <table>
123 * Calendar week modes
124 *
125 *
126 * <tr valign="top">
127 * <td>Mode</td>
128 * <td>Meaning</td>
129 * </tr>
130 *
131 *
132 * <tr valign="top">
133 * <td>0 (Default)</td>
134 * <td>
135 * Return the day number as an int (0=Sunday, 1=Monday, etc)
136 * </td>
137 * </tr>
138 * <tr valign="top">
139 * <td>1</td>
140 * <td>
141 * Returns string containing the day of week
142 * (English-Gregorian)
143 * </td>
144 * </tr>
145 * <tr valign="top">
146 * <td>2</td>
147 * <td>
148 * Return a string containing the abbreviated day of week
149 * (English-Gregorian)
150 * </td>
151 * </tr>
152 *
153 *
154 * </table>
155 * @return mixed The gregorian weekday as either an integer or string.
156 */
157 function jddayofweek ($julianday, $mode = null) {}
158
159 /**
160 * Returns a month name
161 * @link http://www.php.net/manual/en/function.jdmonthname.php
162 * @param julianday int
163 * @param mode int
164 * @return string The month name for the given Julian Day and calendar.
165 */
166 function jdmonthname ($julianday, $mode) {}
167
168 /**
169 * Get Unix timestamp for midnight on Easter of a given year
170 * @link http://www.php.net/manual/en/function.easter-date.php
171 * @param year int[optional] <p>
172 * The year as a number between 1970 an 2037. If omitted, defaults to the
173 * current year according to the local time.
174 * </p>
175 * @return int The easter date as a unix timestamp.
176 */
177 function easter_date ($year = null) {}
178
179 /**
180 * Get number of days after March 21 on which Easter falls for a given year
181 * @link http://www.php.net/manual/en/function.easter-days.php
182 * @param year int[optional] <p>
183 * The year as a positive number. If omitted, defaults to the
184 * current year according to the local time.
185 * </p>
186 * @param method int[optional] <p>
187 * Allows Easter dates to be calculated based
188 * on the Gregorian calendar during the years 1582 - 1752 when set to
189 * CAL_EASTER_ROMAN. See the calendar constants for more valid
190 * constants.
191 * </p>
192 * @return int The number of days after March 21st that the Easter Sunday
193 * is in the given year.
194 */
195 function easter_days ($year = null, $method = null) {}
196
197 /**
198 * Convert Unix timestamp to Julian Day
199 * @link http://www.php.net/manual/en/function.unixtojd.php
200 * @param timestamp int[optional] <p>
201 * A unix timestamp to convert.
202 * </p>
203 * @return int A julian day number as integer.
204 */
205 function unixtojd ($timestamp = null) {}
206
207 /**
208 * Convert Julian Day to Unix timestamp
209 * @link http://www.php.net/manual/en/function.jdtounix.php
210 * @param jday int <p>
211 * A julian day number between 2440588 and 2465342.
212 * </p>
213 * @return int The unix timestamp for the start of the given julian day.
214 */
215 function jdtounix ($jday) {}
216
217 /**
218 * Converts from a supported calendar to Julian Day Count
219 * @link http://www.php.net/manual/en/function.cal-to-jd.php
220 * @param calendar int <p>
221 * Calendar to convert from, one of
222 * CAL_GREGORIAN,
223 * CAL_JULIAN,
224 * CAL_JEWISH or
225 * CAL_FRENCH.
226 * </p>
227 * @param month int <p>
228 * The month as a number, the valid range depends
229 * on the calendar
230 * </p>
231 * @param day int <p>
232 * The day as a number, the valid range depends
233 * on the calendar
234 * </p>
235 * @param year int <p>
236 * The year as a number, the valid range depends
237 * on the calendar
238 * </p>
239 * @return int A Julian Day number.
240 */
241 function cal_to_jd ($calendar, $month, $day, $year) {}
242
243 /**
244 * Converts from Julian Day Count to a supported calendar
245 * @link http://www.php.net/manual/en/function.cal-from-jd.php
246 * @param jd int <p>
247 * Julian day as integer
248 * </p>
249 * @param calendar int <p>
250 * Calendar to convert to
251 * </p>
252 * @return array an array containing calendar information like month, day, year,
253 * day of week, abbreviated and full names of weekday and month and the
254 * date in string form "month/day/year".
255 */
256 function cal_from_jd ($jd, $calendar) {}
257
258 /**
259 * Return the number of days in a month for a given year and calendar
260 * @link http://www.php.net/manual/en/function.cal-days-in-month.php
261 * @param calendar int <p>
262 * Calendar to use for calculation
263 * </p>
264 * @param month int <p>
265 * Month in the selected calendar
266 * </p>
267 * @param year int <p>
268 * Year in the selected calendar
269 * </p>
270 * @return int The length in days of the selected month in the given calendar
271 */
272 function cal_days_in_month ($calendar, $month, $year) {}
273
274 /**
275 * Returns information about a particular calendar
276 * @link http://www.php.net/manual/en/function.cal-info.php
277 * @param calendar int[optional] <p>
278 * Calendar to return information for. If no calendar is specified
279 * information about all calendars is returned.
280 * </p>
281 * @return array
282 */
283 function cal_info ($calendar = null) {}
284
285 define ('CAL_GREGORIAN', 0);
286 define ('CAL_JULIAN', 1);
287 define ('CAL_JEWISH', 2);
288 define ('CAL_FRENCH', 3);
289 define ('CAL_NUM_CALS', 4);
290 define ('CAL_DOW_DAYNO', 0);
291 define ('CAL_DOW_SHORT', 1);
292 define ('CAL_DOW_LONG', 2);
293 define ('CAL_MONTH_GREGORIAN_SHORT', 0);
294 define ('CAL_MONTH_GREGORIAN_LONG', 1);
295 define ('CAL_MONTH_JULIAN_SHORT', 2);
296 define ('CAL_MONTH_JULIAN_LONG', 3);
297 define ('CAL_MONTH_JEWISH', 4);
298 define ('CAL_MONTH_FRENCH', 5);
299 define ('CAL_EASTER_DEFAULT', 0);
300 define ('CAL_EASTER_ROMAN', 1);
301 define ('CAL_EASTER_ALWAYS_GREGORIAN', 2);
302 define ('CAL_EASTER_ALWAYS_JULIAN', 3);
303 define ('CAL_JEWISH_ADD_ALAFIM_GERESH', 2);
304 define ('CAL_JEWISH_ADD_ALAFIM', 4);
305 define ('CAL_JEWISH_ADD_GERESHAYIM', 8);
306
307 // End of calendar v.
308 ?>