Home
last modified time | relevance | path

Searched refs:year (Results 1 – 25 of 132) sorted by relevance

123456

/PHP-5.5/ext/calendar/
H A Deaster.c43 year = 1900; in _cal_easter()
45 year = 1900 + b.tm_year; in _cal_easter()
50 "|ll", &year, &method) == FAILURE) { in _cal_easter()
54 if (gm && (year<1970 || year>2037)) { /* out of range for timestamps */ in _cal_easter()
59 golden = (year % 19) + 1; /* the Golden number */ in _cal_easter()
62 …(year >= 1583 && year <= 1752 && method != CAL_EASTER_ROMAN && method != CAL_EASTER_ALWAYS_GREGORI… in _cal_easter()
65 dom = (year + (year/4) + 5) % 7; /* the "Dominical number" - finding a Sunday */ in _cal_easter()
75 dom = (year + (year/4) - (year/100) + (year/400)) % 7; /* the "Domincal number" */ in _cal_easter()
80 solar = (year-1600)/100 - (year-1600)/400; /* the solar and lunar corrections */ in _cal_easter()
81 lunar = (((year-1400) / 100) * 8) / 25; in _cal_easter()
[all …]
H A Dgregor.c144 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 int year; in GregorianToSdn() local
218 year = inputYear + 4801; in GregorianToSdn()
220 year = inputYear + 4800; in GregorianToSdn()
228 year--; in GregorianToSdn()
[all …]
H A Djulian.c161 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 int year; in JulianToSdn() local
237 year = inputYear + 4801; in JulianToSdn()
239 year = inputYear + 4800; in JulianToSdn()
[all …]
H A Dcalendar.c54 ZEND_ARG_INFO(0, year)
61 ZEND_ARG_INFO(0, year)
76 ZEND_ARG_INFO(0, year)
86 ZEND_ARG_INFO(0, year)
98 ZEND_ARG_INFO(0, year)
108 ZEND_ARG_INFO(0, year)
122 ZEND_ARG_INFO(0, year)
126 ZEND_ARG_INFO(0, year)
357 if (year == -1) { in PHP_FUNCTION()
440 int year, month, day; in PHP_FUNCTION() local
[all …]
H A Dfrench.c118 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 Dsdncal.h70 long int GregorianToSdn(int year, int month, int day);
76 long int JulianToSdn(int year, int month, int day);
80 long int JewishToSdn(int year, int month, int day);
H A Djewish.c523 int year, in FindStartOfYear() argument
530 *pMetonicCycle = (year - 1) / 19; in FindStartOfYear()
531 *pMetonicYear = (year - 1) % 19; in FindStartOfYear()
688 int year, in JewishToSdn() argument
702 if (year <= 0 || day <= 0 || day > 30) { in JewishToSdn()
709 FindStartOfYear(year, &metonicCycle, &metonicYear, in JewishToSdn()
722 FindStartOfYear(year, &metonicCycle, &metonicYear, in JewishToSdn()
745 FindStartOfYear(year + 1, &metonicCycle, &metonicYear, in JewishToSdn()
748 if (monthsPerYear[(year - 1) % 19] == 12) { in JewishToSdn()
765 FindStartOfYear(year + 1, &metonicCycle, &metonicYear, in JewishToSdn()
/PHP-5.5/ext/xsl/tests/
H A Dxslt010.phpt28 year : 1
30 month-in-year : 12
33 week-in-year : 1
34 day-in-year : 365
48 month-in-year : 1
51 week-in-year : 5
52 day-in-year : 31
66 month-in-year : 2
69 week-in-year : 9
87 week-in-year : 1
[all …]
/PHP-5.5/ext/date/lib/
H A Dastro.h5 #define day_length(year,month,day,lon,lat) \ argument
6 __daylen__( year, month, day, lon, lat, -35.0/60.0, 1 )
11 #define day_civil_twilight_length(year,month,day,lon,lat) \ argument
12 __daylen__( year, month, day, lon, lat, -6.0, 0 )
17 #define day_nautical_twilight_length(year,month,day,lon,lat) \ argument
18 __daylen__( year, month, day, lon, lat, -12.0, 0 )
23 #define day_astronomical_twilight_length(year,month,day,lon,lat) \ argument
24 __daylen__( year, month, day, lon, lat, -18.0, 0 )
H A Dtm2unixtime.c64 timelib_sll month, year; in do_range_limit_days_relative() local
69 year = *base_y; in do_range_limit_days_relative()
77 dec_month(&year, &month); in do_range_limit_days_relative()
78 leapyear = timelib_is_leap(year); in do_range_limit_days_relative()
88 leapyear = timelib_is_leap(year); in do_range_limit_days_relative()
95 inc_month(&year, &month); in do_range_limit_days_relative()
319 eras = (year - 1970) / 40000; in do_years()
321 year = year - (eras * 40000); in do_years()
325 if (year >= 1970) { in do_years()
334 for (i = 1969; i >= year; i--) { in do_years()
[all …]
/PHP-5.5/ext/date/tests/
H A Dbug33957.phpt15 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 Dcheckdate_basic1.phpt5 /* Prototype : bool checkdate ( int $month , int $day , int $year )
21 var_dump( checkdate(2, 28, 2009) ); // non-leap year
22 var_dump( checkdate(2, 29, 2008) ); // leap year
23 var_dump( checkdate(7, 2, 1) ); // min year
24 var_dump( checkdate(7, 2, 32767) ); // max year
30 var_dump( checkdate(2, 29, 2009) ); // non-leap year
31 var_dump( checkdate(7, 2, 32768) ); // >max year
32 var_dump( checkdate(7, 2, 0) ); // <min year
H A Dgmdate_variation7.phpt18 echo "\n-- Testing gmdate() function with checking non leap year using Leap Year format --\n";
21 echo "\n-- Testing gmdate() function with checking leap year using Leap Year format --\n";
25 echo "\n-- Testing gmdate() function with ISO-8601 year number format --\n";
29 echo "\n-- Testing gmdate() function with full numeric representation of year format --\n";
33 echo "\n-- Testing gmdate() function with 2 digit representation year format --\n";
42 -- Testing gmdate() function with checking non leap year using Leap Year format --
45 -- Testing gmdate() function with checking leap year using Leap Year format --
49 -- Testing gmdate() function with ISO-8601 year number format --
53 -- Testing gmdate() function with full numeric representation of year format --
57 -- Testing gmdate() function with 2 digit representation year format --
H A Dgmdate_variation8.phpt18 echo "\n-- Testing gmdate() function with checking non leap year using Leap Year format --\n";
21 echo "\n-- Testing gmdate() function with checking leap year using Leap Year format --\n";
25 echo "\n-- Testing gmdate() function with ISO-8601 year number format --\n";
29 echo "\n-- Testing gmdate() function with full numeric representation of year format --\n";
33 echo "\n-- Testing gmdate() function with 2 digit representation year format --\n";
42 -- Testing gmdate() function with checking non leap year using Leap Year format --
45 -- Testing gmdate() function with checking leap year using Leap Year format --
49 -- Testing gmdate() function with ISO-8601 year number format --
53 -- Testing gmdate() function with full numeric representation of year format --
57 -- Testing gmdate() function with 2 digit representation year format --
H A Ddate-lenient.phpt19 [year] => 2004
41 [year] => 2004
63 [year] => 2004
85 [year] => 2004
107 [year] => 2004
128 [year] => 2004
H A Dgmmktime_variation9.phpt5 /* Prototype : int gmmktime([int hour [, int min [, int sec [, int mon [, int day [, int year]]]]]…
19 $year = 2008;
31 var_dump( gmmktime($value, $min, $sec, $mon, $day, $year) );
32 var_dump( gmmktime($hour, $value, $sec, $mon, $day, $year) );
33 var_dump( gmmktime($hour, $min, $value, $mon, $day, $year) );
34 var_dump( gmmktime($hour, $min, $sec, $value, $day, $year) );
H A Didate_variation6.phpt2 Test idate() function : usage variation - Checking return of year(1 or 2 digits) format starting wi…
17 echo "\n-- Testing idate() function for 2 digit year having no zero as starting number --\n";
21 echo "\n-- Testing idate() function for 2 digit year having zero as starting number --\n";
29 -- Testing idate() function for 2 digit year having no zero as starting number --
32 -- Testing idate() function for 2 digit year having zero as starting number --
H A Dgmmktime_variation8.phpt5 /* Prototype : int gmmktime([int hour [, int min [, int sec [, int mon [, int day [, int year]]]]]…
19 $year = 03730;
22 var_dump( gmmktime($hour, $min, $sec, $mon, $day, $year) );
30 $year = 0x7D8;
33 var_dump( gmmktime($hour, $min, $sec, $mon, $day, $year) );
H A Ddate_parse_001.phpt20 ["year"]=>
48 ["year"]=>
76 ["year"]=>
112 ["year"]=>
142 ["year"]=>
170 ["year"]=>
198 ["year"]=>
236 ["year"]=>
272 ["year"]=>
H A Dgetdate_variation5.phpt56 ["year"]=>
82 ["year"]=>
108 ["year"]=>
134 ["year"]=>
160 ["year"]=>
186 ["year"]=>
212 ["year"]=>
H A Dgetdate_variation4.phpt2 Test getdate() function : usage variation - Verifyig by supplying year-wise sample time stamps sinc…
52 ["year"]=>
78 ["year"]=>
104 ["year"]=>
130 ["year"]=>
/PHP-5.5/ext/calendar/tests/
H A Dcal_from_jd.phpt18 [year] => 74
30 [year] => 74
42 [year] => 74
54 [year] => 0
/PHP-5.5/ext/pcre/tests/
H A D001.phpt9 (?P<year>(\d{2})?\d\d) -
27 ["year"]=>
50 ["year"]=>
73 ["year"]=>
H A D003.phpt9 (?P<year>(\d{2})?\d\d) -
42 ["year"]=>
102 ["year"]=>
125 ["year"]=>
/PHP-5.5/ext/fileinfo/libmagic/
H A Dcdf_time.c52 cdf_getdays(int year) in cdf_getdays() argument
57 for (y = CDF_BASE_YEAR; y < year; y++) in cdf_getdays()
67 cdf_getday(int year, int days) in cdf_getday() argument
72 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday()
84 cdf_getmonth(int year, int days) in cdf_getmonth() argument
90 if (m == 1 && isleap(year)) in cdf_getmonth()

Completed in 48 milliseconds

123456