Home
last modified time | relevance | path

Searched refs:hour (Results 1 – 25 of 68) sorted by relevance

123

/php-src/ext/date/tests/
H A Dmktime_basic1.phpt10 $hour = 10;
17 var_dump( mktime($hour) );
18 var_dump( mktime($hour, $minute) );
19 var_dump( mktime($hour, $minute, $sec) );
20 var_dump( mktime($hour, $minute, $sec, $month) );
21 var_dump( mktime($hour, $minute, $sec, $month, $day) );
22 var_dump( mktime($hour, $minute, $sec, $month, $day, $year) );
H A Dbug27780.phpt19 "2004-04-07 00:00:00 +1 hour",
20 "2004-04-07 00:00:00 +2 hour",
49 1081317600 [2004-04-07 01:00:00 CDT] [2004-04-07 00:00:00 +1 hour]
50 1081321200 [2004-04-07 02:00:00 CDT] [2004-04-07 00:00:00 +2 hour]
64 1081292400 [2004-04-07 01:00:00 CEST] [2004-04-07 00:00:00 +1 hour]
79 1081292400 [2004-04-07 02:00:00 IDT] [2004-04-07 00:00:00 +1 hour]
80 1081292400 [2004-04-07 02:00:00 IDT] [2004-04-07 00:00:00 +2 hour]
94 1081270800 [2004-04-07 01:00:00 %s] [2004-04-07 00:00:00 +1 hour]
95 1081274400 [2004-04-07 02:00:00 %s] [2004-04-07 00:00:00 +2 hour]
109 1081310400 [2004-04-07 01:00:00 %s] [2004-04-07 00:00:00 +1 hour]
[all …]
H A Dgmdate_variation9.phpt16 '12-hour format without leading zeros' => 'g',
17 '24-hour format without leading zeros' => 'G',
18 '12-hour format with leading zeros' => 'h',
19 '24-hour format with leading zeros' => 'H',
47 --12-hour format without leading zeros--
51 --24-hour format without leading zeros--
55 --12-hour format with leading zeros--
59 --24-hour format with leading zeros--
H A Ddate-lenient.phpt22 [hour] =>
44 [hour] =>
66 [hour] =>
88 [hour] =>
110 [hour] =>
131 [hour] =>
H A Dgmmktime_variation7.phpt8 $hour = 8;
15 var_dump( gmmktime($hour) );
18 var_dump( gmmktime($hour, $min) );
21 var_dump( gmmktime($hour, $min, $sec) );
24 var_dump( gmmktime($hour, $min, $sec, $mon) );
27 var_dump( gmmktime($hour, $min, $sec, $mon, $day) );
H A Ddate_parse_001.phpt25 ["hour"]=>
53 ["hour"]=>
81 ["hour"]=>
117 ["hour"]=>
147 ["hour"]=>
175 ["hour"]=>
203 ["hour"]=>
241 ["hour"]=>
277 ["hour"]=>
H A Dgmmktime_variation8.phpt8 $hour = 010;
16 var_dump( gmmktime($hour, $min, $sec, $mon, $day, $year) );
19 $hour = 0x8;
27 var_dump( gmmktime($hour, $min, $sec, $mon, $day, $year) );
H A Didate_variation5.phpt14 '12 hour format' => 'h',
15 '24 hour format' => 'H',
35 --12 hour format--
38 --24 hour format--
H A Ddate_parse_basic1.phpt24 ["hour"]=>
52 ["hour"]=>
80 ["hour"]=>
H A Dgmmktime_basic.phpt8 $hour = 8;
16 var_dump( gmmktime($hour, $min, $sec, $mon, $day, $year) );
H A Ddate-parse-by-format001.phpt15 [hour] => 0
36 [hour] => 0
H A Dbug30096.phpt21 function gm_date_check($hour, $minute, $second, $month, $day, $year) {
24 echo "gmmktime($hour,$minute,$second,$month,$day,$year): ";
27 $ts = gmmktime($hour, $minute, $second, $month, $day, $year);
H A Dstrftime_variation6.phpt15 'Hour as decimal by 24-hour format' => "%H",
16 'Hour as decimal by 12-hour format' => "%I",
34 --Hour as decimal by 24-hour format--
42 --Hour as decimal by 12-hour format--
H A Dgmstrftime_variation6.phpt14 'Hour as decimal by 24-hour format' => "%H",
15 'Hour as decimal by 12-hour format' => "%I",
33 --Hour as decimal by 24-hour format--
41 --Hour as decimal by 12-hour format--
H A Dbug30532.phpt8 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +1 hour'))."\n";
14 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +1 hour'))."\n";
H A Dbug35499.phpt22 ["hour"]=>
58 ["hour"]=>
H A Dmktime_error.phpt18 $hour = 10;
26 var_dump( mktime($hour, $minute, $sec, $month, $day, $year, $extra_arg) );
H A Dbug43075.phpt2 Bug #43075 (Support 24 as hour)
/php-src/ext/xsl/tests/
H A Dxslt010.phpt44 hour-in-day : NaN
45 minute-in-hour : NaN
62 hour-in-day : NaN
63 minute-in-hour : NaN
80 hour-in-day : NaN
81 minute-in-hour : NaN
98 hour-in-day : NaN
99 minute-in-hour : NaN
116 hour-in-day : NaN
117 minute-in-hour : NaN
[all …]
H A Dxslt010_gt10129.phpt44 hour-in-day : NaN
45 minute-in-hour : NaN
62 hour-in-day : NaN
63 minute-in-hour : NaN
80 hour-in-day : NaN
81 minute-in-hour : NaN
98 hour-in-day : NaN
99 minute-in-hour : NaN
116 hour-in-day : NaN
117 minute-in-hour : NaN
[all …]
/php-src/ext/date/lib/
H A Dtimelib.c188 void timelib_decimal_hour_to_hms(double h, int *hour, int *min, int *sec) in timelib_decimal_hour_to_hms() argument
198 *hour = floor(h); in timelib_decimal_hour_to_hms()
199 seconds = floor((h - *hour) * 3600); in timelib_decimal_hour_to_hms()
205 *hour = 0 - *hour; in timelib_decimal_hour_to_hms()
209 void timelib_hms_to_decimal_hour(int hour, int min, int sec, double *h) in timelib_hms_to_decimal_hour() argument
211 if (hour >= 0) { in timelib_hms_to_decimal_hour()
212 *h = ((double)hour + (double)min / 60 + (double)sec / 3600); in timelib_hms_to_decimal_hour()
214 *h = ((double)hour - (double)min / 60 - (double)sec / 3600); in timelib_hms_to_decimal_hour()
218 void timelib_hmsf_to_decimal_hour(int hour, int min, int sec, int us, double *h) in timelib_hmsf_to_decimal_hour() argument
220 if (hour >= 0) { in timelib_hmsf_to_decimal_hour()
[all …]
H A Dparse_posix.c274 tmp->hour = read_offset(ptr); in read_transition_spec()
275 if (tmp->hour == TIMELIB_UNSET) { in read_transition_spec()
279 tmp->hour = -tmp->hour; in read_transition_spec()
295 tmp->hour = 2 * 3600; in timelib_posix_trans_info_ctor()
508 trans_begin += tz->posix_info->dst_begin->hour; in timelib_get_transitions_for_year()
513 trans_end += tz->posix_info->dst_end->hour; in timelib_get_transitions_for_year()
/php-src/Zend/tests/parameter_default_values/
H A Dinternal_declaration_error_int.phpt7 …public function setTime(int $hour, int $minute, int $second = 0, bool $microsecond = false): DateT…
13 …:setTime(int $hour, int $minute, int $second = 0, bool $microsecond = false): DateTime must be com…
/php-src/ext/intl/calendar/
H A Dcalendar.stub.php321 …public function set(int $year, int $month, int $dayOfMonth = UNKNOWN, int $hour = UNKNOWN, int $mi… argument
325 …public function setDateTime(int $year, int $month, int $dayOfMonth, int $hour, int $minute, ?int $… argument
376 …public static function createFromDateTime(int $year, int $month, int $dayOfMonth, int $hour, int $… argument
382 * @param int $hour
386 …uct($timezoneOrYear = UNKNOWN, $localeOrMonth = UNKNOWN, $day = UNKNOWN, $hour = UNKNOWN, $minute … argument
/php-src/ext/intl/dateformat/
H A Ddateformat_format.c97 hour, in internal_get_timestamp() local
112 hour = INTL_GET_ELEM(CALENDAR_HOUR); in internal_get_timestamp()
130 ucal_setDateTime(pcal, year, month, mday, hour, minute, second, &INTL_DATA_ERROR_CODE(dfo)); in internal_get_timestamp()

Completed in 26 milliseconds

123