Home
last modified time | relevance | path

Searched refs:days (Results 1 – 25 of 126) sorted by relevance

123456

/php-src/ext/date/tests/
H A Dbug27780.phpt14 "2004-04-07 00:00:00 -21 days",
15 "2004-04-07 00:00:00 11 days ago",
23 "2004-04-07 00:00:00 +21 days",
44 1079503200 [2004-03-17 00:00:00 CST] [2004-04-07 00:00:00 -21 days]
53 1083128400 [2004-04-28 00:00:00 CDT] [2004-04-07 00:00:00 +21 days]
59 1079478000 [2004-03-17 00:00:00 CET] [2004-04-07 00:00:00 -21 days]
74 1079474400 [2004-03-17 00:00:00 IST] [2004-04-07 00:00:00 -21 days]
89 1079452800 [2004-03-17 00:00:00 %s] [2004-04-07 00:00:00 -21 days]
98 1083081600 [2004-04-28 00:00:00 %s] [2004-04-07 00:00:00 +21 days]
104 1079492400 [2004-03-17 00:00:00 %s] [2004-04-07 00:00:00 -21 days]
[all …]
H A Ddate_create-relative.phpt17 '1460000 days',
18 '1460969 days',
19 '1460970 days',
20 '1460971 days',
21 '1462970 days',
40 '10000000000 days',
54 +1460000 days: 6005-07-03T12:00:00+0000
56 +1460969 days: 6008-02-27T12:00:00+0000
58 +1460970 days: 6008-02-28T12:00:00+0000
60 +1460971 days: 6008-02-29T12:00:00+0000
[all …]
H A Dstrtotime-relative.phpt18 // offset around 7 days
26 '178 days',
27 '179 days',
28 '180 days',
29 '183 days',
30 '184 days',
73 +178 days: 2008-08-24T12:00:00+0000
74 -178 days: 2007-09-03T12:00:00+0000
75 +179 days: 2008-08-25T12:00:00+0000
76 -179 days: 2007-09-02T12:00:00+0000
[all …]
H A Dbug65003.phpt14 echo $interval->format('%m month, %d days'), "\n"; //1 month, 3 days
17 echo $interval->format('%m month, %d days'), "\n"; //1 month, 0 days
20 1 month, 0 days
21 1 month, 0 days
H A Dbug49059.phpt13 print "\$diff->days after first diff: " . $diff->days . "\n";
19 print "\$diff->days after second diff: " . $diff->days . "\n";
23 print "\$diff->days after third diff: " . $diff->days . "\n";
29 $diff->days after first diff: 26
32 $diff->days after second diff: 24
34 $diff->days after third diff: 24
H A Ddate_interval_format.phpt11 echo date_interval_format($interval, '%d days');
16 echo date_interval_format($interval, '%d days');
20 4 days
21 32 days
H A Dbug52113.phpt28 'days' => 2400,
53 ["days"]=>
58 …i:0;s:1:"h";i:4;s:1:"i";i:0;s:1:"s";i:0;s:1:"f";d:0;s:6:"invert";i:0;s:4:"days";i:0;s:11:"from_str…
68 'days' => 0,
87 ["days"]=>
124 ["days"]=>
153 ["days"]=>
190 ["days"]=>
H A Dbug33869.phpt2 Bug #33869 (strtotime() doesn't parse "+1days" format)
7 echo date(DATE_ISO8601, strtotime('+5days', $tm));
13 echo date(DATE_ISO8601, strtotime('+5 days', $tm));
H A DDateInterval_days_prop1.phpt2 Wrong var_dump(DateInterval->days) value
8 var_dump($interval->days);
H A DDateInterval_serialize-002.phpt36 'days' => 15820,
65 ["days"]=>
73 …4;s:1:"h";i:1;s:1:"i";i:12;s:1:"s";i:27;s:1:"f";d:0;s:6:"invert";i:0;s:4:"days";i:15820;s:11:"from…
94 ["days"]=>
119 ["days"]=>
144 ["days"]=>
H A Dbug52480.phpt9 // number of days between the start and end dates. Otherwise, days will be FALSE.
11 $expectedDiff['days'] = 30;
H A Ddate_period_properties.phpt55 ["days"]=>
67 …d":null,"interval":{"y":0,"m":0,"d":7,"h":0,"i":0,"s":0,"f":0,"invert":0,"days":false,"from_string…
68 …i:7;s:1:"h";i:0;s:1:"i";i:0;s:1:"s";i:0;s:1:"f";d:0;s:6:"invert";i:0;s:4:"days";b:0;s:11:"from_str…
103 ["days"]=>
135 'days' => false,
176 ["days"]=>
H A Dbug49081.phpt2 Bug #49081 (DateTime::diff() mistake if start in January and interval > 28 days)
22 [days] => 30
H A Dbug48678.phpt21 [days] =>
34 [days] =>
H A Dbug60774.phpt5 $i= DateInterval::createFromDateString('2 days');
15 string(6) "2 days"
H A Dbug73858.phpt16 var_dump($d->days); // 0 ... but should be 30
21 var_dump($d->days); // 30 ... and should be 30
30 var_dump($d->days); // 0 ... but should be 30
35 var_dump($d->days); // 30 ... and should be 30
44 var_dump($d->days); // 30 ... and should be 30
55 var_dump($e->diff($s)->days); // 30 ... and should be 30
H A DDateInterval_serialize-001.phpt46 ["days"]=>
54 …i:4;s:1:"h";i:6;s:1:"i";i:8;s:1:"s";i:0;s:1:"f";d:0;s:6:"invert";i:0;s:4:"days";b:0;s:11:"from_str…
75 ["days"]=>
100 ["days"]=>
H A Dbug70153.phpt16 var_dump($i1->days, $i2->days);
H A Dbug81458.phpt8 var_dump($first->diff($second)->days);
15 var_dump($a->diff($b)->days);
H A Dbug81263.phpt23 [days] => 0
36 [days] => 0
/php-src/ext/calendar/tests/
H A Dcal_days_in_month.phpt8 echo "There are $num days in August 2003\n";
10 echo "There are $num days in February 2003\n";
12 echo "There are $num days in February 2004\n";
14 echo "There are $num days in December 2034\n";
17 There are 31 days in August 2003
18 There are 28 days in February 2003
19 There are 29 days in February 2004
20 There are 31 days in December 2034
/php-src/ext/fileinfo/libmagic/
H A Dcdf_time.c54 int days = 0; in cdf_getdays() local
58 days += isleap(y) + 365; in cdf_getdays()
60 return days; in cdf_getdays()
67 cdf_getday(int year, int days) in cdf_getday() argument
73 if (days < sub) in cdf_getday()
74 return days; in cdf_getday()
75 days -= sub; in cdf_getday()
77 return days; in cdf_getday()
89 days -= mdays[m]; in cdf_getmonth()
91 days--; in cdf_getmonth()
[all …]
/php-src/.github/workflows/
H A Dclose-stale-prs.yml20 days-before-close: 7
21 days-before-stale: 60
26 …been any recent activity in this PR. It will automatically be closed in 7 days if no further actio…
H A Dclose-stale-feature-requests.yml20 days-before-close: 14
21 days-before-stale: 90
27 …as not been any recent activity in this feature request. It will automatically be closed in 14 days
/php-src/ext/date/lib/
H A Dunixtime2tm.c31 timelib_sll days, era, t; in timelib_unixtime2date() local
35 days = ts / SECS_PER_DAY + HINNANT_EPOCH_SHIFT; in timelib_unixtime2date()
39 days += (t < 0) ? -1 : 0; in timelib_unixtime2date()
43 era = (days >= 0 ? days : days - DAYS_PER_ERA + 1) / DAYS_PER_ERA; in timelib_unixtime2date()
44 day_of_era = days - era * DAYS_PER_ERA; in timelib_unixtime2date()

Completed in 25 milliseconds

123456