/PHP-8.0/ext/calendar/ |
H A D | easter.c | 34 "|l!l", &year, &year_is_null, &method) == FAILURE) { in _cal_easter() 45 year = 1900; in _cal_easter() 47 year = 1900 + b.tm_year; in _cal_easter() 51 if (gm && (year<1970 || year>2037)) { /* out of range for timestamps */ in _cal_easter() 56 golden = (year % 19) + 1; /* the Golden number */ in _cal_easter() 59 …(year >= 1583 && year <= 1752 && method != CAL_EASTER_ROMAN && method != CAL_EASTER_ALWAYS_GREGORI… in _cal_easter() 62 dom = (year + (year/4) + 5) % 7; /* the "Dominical number" - finding a Sunday */ in _cal_easter() 72 dom = (year + (year/4) - (year/100) + (year/400)) % 7; /* the "Domincal number" */ in _cal_easter() 77 solar = (year-1600)/100 - (year-1600)/400; /* the solar and lunar corrections */ in _cal_easter() 78 lunar = (((year-1400) / 100) * 8) / 25; in _cal_easter() [all …]
|
H A D | gregor.c | 144 int year; in SdnToGregorian() local 173 year += 1; in SdnToGregorian() 178 year -= 4800; in SdnToGregorian() 179 if (year <= 0) in SdnToGregorian() 180 year--; in SdnToGregorian() 182 *pYear = year; in SdnToGregorian() 198 zend_long year; in GregorianToSdn() local 218 year = inputYear + 4801; in GregorianToSdn() 220 year = inputYear + 4800; in GregorianToSdn() 228 year--; in GregorianToSdn() [all …]
|
H A D | calendar.c | 206 zend_long cal, month, year; in PHP_FUNCTION() local 234 if (year == -1) { in PHP_FUNCTION() 272 int month, day, year, dow; in PHP_FUNCTION() local 323 int year, month, day; in PHP_FUNCTION() local 338 zend_long year, month, day; in PHP_FUNCTION() local 352 int year, month, day; in PHP_FUNCTION() local 478 int year, month, day; in PHP_FUNCTION() local 489 if (year <= 0 || year > 9999) { in PHP_FUNCTION() 523 int year, month, day; in PHP_FUNCTION() local 583 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 | calendar.stub.php | 5 function cal_days_in_month(int $calendar, int $month, int $year): int {} argument 11 function cal_to_jd(int $calendar, int $month, int $day, int $year): int {} argument 13 function easter_date(?int $year = null, int $mode = CAL_EASTER_DEFAULT): int {} argument 15 function easter_days(?int $year = null, int $mode = CAL_EASTER_DEFAULT): int {} argument 17 function frenchtojd(int $month, int $day, int $year): int {} argument 19 function gregoriantojd(int $month, int $day, int $year): int {} argument 35 function jewishtojd(int $month, int $day, int $year): int {} argument 37 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-8.0/ext/xsl/tests/ |
H A D | xslt010.phpt | 30 year : 1 32 month-in-year : 12 35 week-in-year : 1 36 day-in-year : 365 50 month-in-year : 1 53 week-in-year : 5 54 day-in-year : 31 68 month-in-year : 2 71 week-in-year : 9 89 week-in-year : 1 [all …]
|
H A D | xslt010_gt10129.phpt | 29 year : 1 31 month-in-year : 12 34 week-in-year : 1 35 day-in-year : 365 49 month-in-year : 1 52 week-in-year : 5 53 day-in-year : 31 67 month-in-year : 2 70 week-in-year : 9 71 day-in-year : 60 [all …]
|
/PHP-8.0/ext/calendar/tests/ |
H A D | jdtojewish_hebrew.phpt | 9 for ($year = 5000; $year <= 5001; $year++) { 10 $leap = ($year === 5001) ? 'leap' : 'normal'; 11 echo "$leap year $year\n"; 13 $jd = jewishtojd($month, 1, $year); 22 normal year 5000 37 leap year 5001
|
H A D | cal_from_jd.phpt | 18 [year] => 74 30 [year] => 74 42 [year] => 74 54 [year] => 0
|
/PHP-8.0/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 )
|
/PHP-8.0/ext/date/tests/ |
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 | gmmktime_variation9_64bits.phpt | 17 $year = 2008; 29 var_dump( gmmktime($value, $min, $sec, $mon, $day, $year) ); 30 var_dump( gmmktime($hour, $value, $sec, $mon, $day, $year) ); 31 var_dump( gmmktime($hour, $min, $value, $mon, $day, $year) ); 32 var_dump( gmmktime($hour, $min, $sec, $value, $day, $year) );
|
H A D | getdate_variation5.phpt | 49 ["year"]=> 75 ["year"]=> 101 ["year"]=> 127 ["year"]=> 153 ["year"]=> 179 ["year"]=> 205 ["year"]=>
|
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 | gmmktime_variation8.phpt | 13 $year = 03730; 16 var_dump( gmmktime($hour, $min, $sec, $mon, $day, $year) ); 24 $year = 0x7D8; 27 var_dump( gmmktime($hour, $min, $sec, $mon, $day, $year) );
|
H A D | getdate_variation4.phpt | 2 Test getdate() function : usage variation - Verifyig by supplying year-wise sample time stamps sinc… 45 ["year"]=> 71 ["year"]=> 97 ["year"]=> 123 ["year"]=>
|
/PHP-8.0/ext/pcre/tests/ |
H A D | 001.phpt | 9 (?P<year>(\d{2})?\d\d) - 27 ["year"]=> 50 ["year"]=> 73 ["year"]=>
|
H A D | 003.phpt | 9 (?P<year>(\d{2})?\d\d) - 42 ["year"]=> 102 ["year"]=> 125 ["year"]=>
|
/PHP-8.0/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 53 cdf_getdays(int year) in cdf_getdays() argument 58 for (y = CDF_BASE_YEAR; y < year; y++) in cdf_getdays() 68 cdf_getday(int year, int days) in cdf_getday() argument 73 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 85 cdf_getmonth(int year, int days) in cdf_getmonth() argument 91 if (m == 1 && isleap(year)) in cdf_getmonth()
|