xref: /PHP-8.1/ext/calendar/calendar.stub.php (revision d02b9b95)
1<?php
2
3/** @generate-class-entries */
4
5function cal_days_in_month(int $calendar, int $month, int $year): int {}
6
7/**
8 * @return array<string, int|string|null>
9 * @refcount 1
10 */
11function cal_from_jd(int $julian_day, int $calendar): array {}
12
13/**
14 * @return array<int|string, int|string|array>
15 * @refcount 1
16 */
17function cal_info(int $calendar = -1): array {}
18
19function cal_to_jd(int $calendar, int $month, int $day, int $year): int {}
20
21function easter_date(?int $year = null, int $mode = CAL_EASTER_DEFAULT): int {}
22
23function easter_days(?int $year = null, int $mode = CAL_EASTER_DEFAULT): int {}
24
25function frenchtojd(int $month, int $day, int $year): int {}
26
27function gregoriantojd(int $month, int $day, int $year): int {}
28
29function jddayofweek(int $julian_day, int $mode = CAL_DOW_DAYNO): int|string {}
30
31function jdmonthname(int $julian_day, int $mode): string {}
32
33function jdtofrench(int $julian_day): string {}
34
35function jdtogregorian(int $julian_day): string {}
36
37function jdtojewish(int $julian_day, bool $hebrew = false, int $flags = 0): string {}
38
39function jdtojulian(int $julian_day): string {}
40
41function jdtounix(int $julian_day): int {}
42
43function jewishtojd(int $month, int $day, int $year): int {}
44
45function juliantojd(int $month, int $day, int $year): int {}
46
47function unixtojd(?int $timestamp = null): int|false {}
48