/php-src/ext/calendar/ |
H A D | easter.c | 51 year = 1900; in _cal_easter() 53 year = 1900 + b.tm_year; in _cal_easter() 57 if (year <= 0 || year > max_year) { in _cal_easter() 64 if (gm && year < 1970) { in _cal_easter() 70 if (gm && year > 2000000000) { in _cal_easter() 77 if (gm && (year < 1970 || year > 2037)) { in _cal_easter() 87 …(year >= 1583 && year <= 1752 && method != CAL_EASTER_ROMAN && method != CAL_EASTER_ALWAYS_GREGORI… in _cal_easter() 90 dom = (year + (year/4) + 5) % 7; /* the "Dominical number" - finding a Sunday */ in _cal_easter() 100 dom = (year + (year/4) - (year/100) + (year/400)) % 7; /* the "Domincal number" */ in _cal_easter() 105 solar = (year-1600)/100 - (year-1600)/400; /* the solar and lunar corrections */ in _cal_easter() [all …]
|
H A D | calendar.c | 184 zend_long cal, month, year; in PHP_FUNCTION() local 212 if (year == -1) { in PHP_FUNCTION() 250 int month, day, year, dow; in PHP_FUNCTION() local 301 int year, month, day; in PHP_FUNCTION() local 316 zend_long year, month, day; in PHP_FUNCTION() local 330 int year, month, day; in PHP_FUNCTION() local 456 int year, month, day; in PHP_FUNCTION() local 467 if (year <= 0 || year > 9999) { in PHP_FUNCTION() 501 int year, month, day; in PHP_FUNCTION() local 561 int month, day, year; in PHP_FUNCTION() local [all …]
|
H A D | julian.c | 161 int year; in SdnToJulian() local 182 year = (int) yearl; in SdnToJulian() 195 year += 1; in SdnToJulian() 200 year -= 4800; in SdnToJulian() 201 if (year <= 0) in SdnToJulian() 202 year--; in SdnToJulian() 204 *pYear = year; in SdnToJulian() 220 zend_long year; in JulianToSdn() local 237 year = inputYear + 4801; in JulianToSdn() 239 year = inputYear + 4800; in JulianToSdn() [all …]
|
H A D | gregor.c | 144 int year; in SdnToGregorian() local 182 year += 1; in SdnToGregorian() 187 year -= 4800; in SdnToGregorian() 188 if (year <= 0) in SdnToGregorian() 189 year--; in SdnToGregorian() 191 *pYear = year; in SdnToGregorian() 207 zend_long year; in GregorianToSdn() local 227 year = inputYear + 4801; in GregorianToSdn() 229 year = inputYear + 4800; in GregorianToSdn() 237 year--; in GregorianToSdn() [all …]
|
H A D | calendar.stub.php | 115 function cal_days_in_month(int $calendar, int $month, int $year): int {} argument 129 function cal_to_jd(int $calendar, int $month, int $day, int $year): int {} argument 131 function easter_date(?int $year = null, int $mode = CAL_EASTER_DEFAULT): int {} argument 133 function easter_days(?int $year = null, int $mode = CAL_EASTER_DEFAULT): int {} argument 135 function frenchtojd(int $month, int $day, int $year): int {} argument 137 function gregoriantojd(int $month, int $day, int $year): int {} argument 153 function jewishtojd(int $month, int $day, int $year): int {} argument 155 function juliantojd(int $month, int $day, int $year): int {} argument
|
H A D | french.c | 118 int year, in FrenchToSdn() argument 123 if (year < 1 || year > 14 || in FrenchToSdn() 128 return ((year * DAYS_PER_4_YEARS) / 4 in FrenchToSdn()
|
H A D | sdncal.h | 72 zend_long GregorianToSdn(int year, int month, int day); 78 zend_long JulianToSdn(int year, int month, int day); 82 zend_long JewishToSdn(int year, int month, int day);
|
/php-src/ext/xsl/tests/ |
H A D | xslt010.phpt | 31 year : 1 33 month-in-year : 12 36 week-in-year : 1 37 day-in-year : 365 51 month-in-year : 1 54 week-in-year : 5 55 day-in-year : 31 69 month-in-year : 2 72 week-in-year : 9 90 week-in-year : 1 [all …]
|
H A D | xslt010_gt10129.phpt | 31 year : 1 33 month-in-year : 12 36 week-in-year : 1 37 day-in-year : 365 51 month-in-year : 1 54 week-in-year : 5 55 day-in-year : 31 69 month-in-year : 2 72 week-in-year : 9 73 day-in-year : 60 [all …]
|
/php-src/ext/calendar/tests/ |
H A D | jdtojewish_hebrew.phpt | 7 for ($year = 5000; $year <= 5001; $year++) { 8 $leap = ($year === 5001) ? 'leap' : 'normal'; 9 echo "$leap year $year\n"; 11 $jd = jewishtojd($month, 1, $year); 20 normal year 5000 35 leap year 5001
|
H A D | gh16228.phpt | 2 GH-16228 (easter_days, Overflow on year argument) 24 easter_days(): Argument #1 ($year) must be between 1 and %d 25 easter_days(): Argument #1 ($year) must be between 1 and %d 26 easter_date(): Argument #1 ($year) must be between 1 and %d
|
H A D | cal_from_jd.phpt | 18 [year] => 74 30 [year] => 74 42 [year] => 74 54 [year] => 0
|
H A D | easter_date_checks_upper_bound_64bit.phpt | 2 Test easter_date() on 64bit systems checks the upper year limit 21 easter_date(): Argument #1 ($year) must be a year before 2.000.000.000 (inclusive)
|
/php-src/ext/date/tests/ |
H A D | bug79580.phpt | 2 Bug #79580: date_create_from_format misses leap year 20 Testing for 31 2020: A 'day of year' can only come after a year has been found 21 Testing for 60 2020: A 'day of year' can only come after a year has been found 22 Testing for 91 2020: A 'day of year' can only come after a year has been found 23 Testing for 121 2020: A 'day of year' can only come after a year has been found 24 Testing for 130 2020: A 'day of year' can only come after a year has been found
|
H A D | bug33957.phpt | 15 foreach (range(1992, 2019) as $year) { 16 echo "$year "; 22 foreach (range(1992, 2019) as $year) { 23 echo sprintf(" %02d-", date("W", strtotime("$year-12-$i"))); 24 echo sprintf("%04d ", date("o", strtotime("$year-12-$i"))); 30 foreach (range(1993, 2020) as $year) { 31 echo sprintf(" %02d-", date("W", strtotime("$year-1-$i"))); 32 echo sprintf("%04d ", date("o", strtotime("$year-1-$i")));
|
H A D | gmdate_variation7.phpt | 12 echo "\n-- Testing gmdate() function with checking non leap year using Leap Year format --\n"; 15 echo "\n-- Testing gmdate() function with checking leap year using Leap Year format --\n"; 19 echo "\n-- Testing gmdate() function with ISO-8601 year number format --\n"; 23 echo "\n-- Testing gmdate() function with full numeric representation of year format --\n"; 27 echo "\n-- Testing gmdate() function with 2 digit representation year format --\n"; 35 -- Testing gmdate() function with checking non leap year using Leap Year format -- 38 -- Testing gmdate() function with checking leap year using Leap Year format -- 42 -- Testing gmdate() function with ISO-8601 year number format -- 46 -- Testing gmdate() function with full numeric representation of year format -- 50 -- Testing gmdate() function with 2 digit representation year format --
|
H A D | checkdate_basic1.phpt | 15 var_dump( checkdate(2, 28, 2009) ); // non-leap year 16 var_dump( checkdate(2, 29, 2008) ); // leap year 17 var_dump( checkdate(7, 2, 1) ); // min year 18 var_dump( checkdate(7, 2, 32767) ); // max year 24 var_dump( checkdate(2, 29, 2009) ); // non-leap year 25 var_dump( checkdate(7, 2, 32768) ); // >max year 26 var_dump( checkdate(7, 2, 0) ); // <min year
|
H A D | idate_variation6.phpt | 2 Test idate() function : usage variation - Checking return of year(1 or 2 digits) format starting wi… 11 echo "\n-- Testing idate() function for 2 digit year having no zero as starting number --\n"; 15 echo "\n-- Testing idate() function for 2 digit year having zero as starting number --\n"; 22 -- Testing idate() function for 2 digit year having no zero as starting number -- 25 -- Testing idate() function for 2 digit year having zero as starting number --
|
H A D | date-lenient.phpt | 19 [year] => 2004 41 [year] => 2004 63 [year] => 2004 85 [year] => 2004 107 [year] => 2004 128 [year] => 2004
|
H A D | date_parse_001.phpt | 19 ["year"]=> 47 ["year"]=> 75 ["year"]=> 111 ["year"]=> 141 ["year"]=> 169 ["year"]=> 197 ["year"]=> 235 ["year"]=> 271 ["year"]=>
|
H A D | getdate_variation5.phpt | 49 ["year"]=> 75 ["year"]=> 101 ["year"]=> 127 ["year"]=> 153 ["year"]=> 179 ["year"]=> 205 ["year"]=>
|
/php-src/ext/date/lib/ |
H A D | astro.h | 29 #define day_length(year,month,day,lon,lat) \ argument 30 __daylen__( year, month, day, lon, lat, -35.0/60.0, 1 ) 35 #define day_civil_twilight_length(year,month,day,lon,lat) \ argument 36 __daylen__( year, month, day, lon, lat, -6.0, 0 ) 41 #define day_nautical_twilight_length(year,month,day,lon,lat) \ argument 42 __daylen__( year, month, day, lon, lat, -12.0, 0 ) 47 #define day_astronomical_twilight_length(year,month,day,lon,lat) \ argument 48 __daylen__( year, month, day, lon, lat, -18.0, 0 )
|
H A D | parse_posix.c | 417 int leap_year = timelib_is_leap(year); in calc_transition() 445 yy0 = (psi->mwd.month <= 2) ? (year - 1) : year; in calc_transition() 488 timelib_sll timelib_ts_at_start_of_year(timelib_sll year) in timelib_ts_at_start_of_year() argument 491 timelib_sll current_leap_years = count_leap_years(year); in timelib_ts_at_start_of_year() 494 ((year-1970) * DAYS_PER_YEAR) in timelib_ts_at_start_of_year() 512 trans_end += calc_transition(tz->posix_info->dst_end, year); in timelib_get_transitions_for_year() 533 timelib_sll year; in timelib_fetch_posix_timezone_offset() local 549 year = dummy.y; in timelib_fetch_posix_timezone_offset() 552 timelib_get_transitions_for_year(tz, year - 1, &transitions); in timelib_fetch_posix_timezone_offset() 553 timelib_get_transitions_for_year(tz, year, &transitions); in timelib_fetch_posix_timezone_offset() [all …]
|
/php-src/ext/intl/calendar/ |
H A D | gregoriancalendar_methods.cpp | 233 zend_long year, month, day; in PHP_METHOD() local 242 Z_PARAM_LONG(year) in PHP_METHOD() 247 ZEND_VALUE_ERROR_OUT_OF_BOUND_VALUE(year, 1); in PHP_METHOD() 253 gcal = new GregorianCalendar((int32_t) year, (int32_t) month, (int32_t) day, status); in PHP_METHOD() 269 zend_long year, month, day, hour, minute, second; in PHP_METHOD() local 279 Z_PARAM_LONG(year) in PHP_METHOD() 288 ZEND_VALUE_ERROR_OUT_OF_BOUND_VALUE(year, 1); in PHP_METHOD() 352 zend_long year; in PHP_FUNCTION() local 356 "Ol", &object, GregorianCalendar_ce_ptr, &year) == FAILURE) { in PHP_FUNCTION() 361 if (UNEXPECTED(year < INT32_MIN || year > INT32_MAX)) { in PHP_FUNCTION() [all …]
|
/php-src/ext/pcre/tests/ |
H A D | 001.phpt | 9 (?P<year>(\d{2})?\d\d) - 27 ["year"]=> 50 ["year"]=> 73 ["year"]=>
|