Home
last modified time | relevance | path

Searched refs:time (Results 1 – 25 of 710) sorted by relevance

12345678910>>...29

/PHP-7.3/ext/date/lib/
H A Dtm2unixtime.c153 current_dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_for_weekday()
232 if (time->y == 1970 && time->m == 1 && time->d != 1) { in timelib_do_normalize()
250 time->s += time->relative.s; in do_adjust_relative()
251 time->i += time->relative.i; in do_adjust_relative()
252 time->h += time->relative.h; in do_adjust_relative()
254 time->d += time->relative.d; in do_adjust_relative()
255 time->m += time->relative.m; in do_adjust_relative()
277 dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_special_weekday()
504 res += do_time(time->h, time->i, time->s); in timelib_update_ts()
522 time.y, time.m, time.d, time.h, time.i, time.s, time.f, time.z, time.dst);
[all …]
H A Dparse_date.re95 #define TIMELIB_UNHAVE_TIME() { s->time->have_time = 0; s->time->h = 0; s->time->i = 0; s->time->s …
97 #define TIMELIB_UNHAVE_DATE() { s->time->have_date = 0; s->time->d = 0; s->time->m = 0; s->time->y …
1084 s->time->h = s->time->i = s->time->s = 0;
1111 s->time->h = s->time->i = s->time->s = 0;
1852 …in.time->y = in.time->d = in.time->m = in.time->h = in.time->i = in.time->s = in.time->us = in.tim…
1886 if (in.time->have_time && !timelib_valid_time( in.time->h, in.time->i, in.time->s)) {
1890 if (in.time->have_date && !timelib_valid_date( in.time->y, in.time->m, in.time->d)) {
1921 time->h = time->i = time->s = 0;
2243 s->time->h = s->time->i = s->time->s = 0;
2500 time.y, time.m, time.d, time.h, time.i, time.s, time.f, time.z, time.dst);
[all …]
H A DREADME.rst4 Timelib is a timezone and date/time library that can calculate local time,
5 convert between timezones and parse textual descriptions of date/time
8 It is the library supporting PHP's Date/Time extension and MongoDB's time zone
/PHP-7.3/ext/standard/tests/general_functions/
H A Dgetrusage_variation1.phpt81 User time used (microseconds) %d
84 User time used (microseconds) %d
87 User time used (microseconds) %d
90 User time used (microseconds) %d
93 User time used (microseconds) %d
96 User time used (microseconds) %d
99 User time used (microseconds) %d
102 User time used (microseconds) %d
105 User time used (microseconds) %d
108 User time used (microseconds) %d
[all …]
H A Dsleep_basic.phpt25 // Test passes if sleeps for at least 98% of specified time
29 $time = $time_end - $time_start;
31 echo "Thread slept for " . $time . " seconds\n";
33 if ($time >= $sleeplow) {
36 echo "TEST FAILED - time is ${time} secs and sleep was ${sleeptime} secs\n";
/PHP-7.3/ext/standard/tests/file/
H A D005_variation2.phpt88 -- File access time is =>
89 -- File modification time is =>
90 -- inode change time is =>
93 -- File access time is =>
95 -- inode change time is =>
98 -- File access time is =>
100 -- inode change time is =>
103 -- File access time is => %d
105 -- inode change time is => %d
108 -- File access time is => %d
[all …]
H A D005_variation-win32.phpt34 echo "-- File access time is => ";
37 echo "-- File modification time is => ";
40 echo "-- inode change time is => ";
122 /* set to access(creation time of the file) time */
127 /* set to access time of $file_name2 */
157 -- File access time is => %d:%s:%s:%d:%d:%d
160 -- File access time is => %d:%s:%s:%d:%d:%d
163 -- File access time is => %d:%s:%s:%d:%d:%d
168 -- File access time is => %d:%s:%s:%d:%d:%d
173 -- File access time is => %d:%s:%s:%d:%d:%d
[all …]
H A D005_variation.phpt37 echo "-- File access time is => ";
40 echo "-- File modification time is => ";
43 echo "-- inode change time is => ";
137 /* set to access(creation time of the file) time */
142 /* set to access time of $file_name2 */
186 -- File access time is => %d:%s:%s:%d:%d:%d
189 -- File access time is => %d:%s:%s:%d:%d:%d
192 -- File access time is => %d:%s:%s:%d:%d:%d
197 -- File access time is => %d:%s:%s:%d:%d:%d
202 -- File access time is => %d:%s:%s:%d:%d:%d
[all …]
H A D005_variation2-win32.phpt74 -- File access time is =>
75 -- File modification time is =>
76 -- inode change time is =>
79 -- File access time is =>
81 -- inode change time is =>
84 -- File access time is =>
86 -- inode change time is =>
89 -- File access time is =>
95 -- inode change time is =>
100 -- File access time is =>
[all …]
/PHP-7.3/ext/ftp/tests/
H A Dftp_mdtm_basic.phpt22 $time = ftp_mdtm($ftp, "A");
23 echo date("F d Y H:i:s u",$time), PHP_EOL;
25 $time = ftp_mdtm($ftp, "B");
26 echo date("F d Y H:i:s u",$time), PHP_EOL;
28 $time = ftp_mdtm($ftp, "C");
29 echo date("F d Y H:i:s u",$time), PHP_EOL;
31 $time = ftp_mdtm($ftp, "D");
32 var_dump($time);
34 $time = ftp_mdtm($ftp, "19990929043300 File6");
35 echo date("F d Y H:i:s u",$time), PHP_EOL;
[all …]
/PHP-7.3/ext/date/tests/
H A Ddate_sunrise_variation9.phpt8 * Description: Returns time of sunrise for a given day and location
23 echo "\n-- Testing date_sunrise() function by passing float 12.3456789000e10 value to time --\n";
24 $time = 12.3456789000e10;
25 var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, $latitude, $longitude, $zenith, $gmt_offset) );
26 var_dump( date_sunrise($time, SUNFUNCS_RET_DOUBLE, $latitude, $longitude, $zenith, $gmt_offset) );
29 echo "\n-- Testing date_sunrise() function by passing float -12.3456789000e10 value to time --\n";
30 $time = -12.3456789000e10;
31 var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, $latitude, $longitude, $zenith, $gmt_offset) );
32 var_dump( date_sunrise($time, SUNFUNCS_RET_DOUBLE, $latitude, $longitude, $zenith, $gmt_offset) );
40 -- Testing date_sunrise() function by passing float 12.3456789000e10 value to time --
[all …]
H A Ddate_sunset_variation9.phpt2 …et() function : usage variation - Passing high positive and negative float values to time argument.
8 * Description: Returns time of sunset for a given day and location
23 echo "\n-- Testing date_sunset() function by passing float 12.3456789000e10 value to time --\n";
24 $time = 12.3456789000e10;
25 var_dump( date_sunset($time, SUNFUNCS_RET_STRING, $latitude, $longitude, $zenith, $gmt_offset) );
26 var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, $latitude, $longitude, $zenith, $gmt_offset) );
29 echo "\n-- Testing date_sunset() function by passing float -12.3456789000e10 value to time --\n";
30 $time = -12.3456789000e10;
31 var_dump( date_sunset($time, SUNFUNCS_RET_STRING, $latitude, $longitude, $zenith, $gmt_offset) );
40 -- Testing date_sunset() function by passing float 12.3456789000e10 value to time --
[all …]
H A Ddate_sunrise_and_sunset_basic.phpt8 /* calculate the sunrise time for Lisbon, Portugal
17 echo date("D M d Y") . ', sunrise time : ' . date_sunrise(time(), SUNFUNCS_RET_STRING, 38.4, -9, 90…
18 echo date("D M d Y") . ', sunset time : ' . date_sunset(time(), SUNFUNCS_RET_STRING, 38.4, -9, 90, …
24 %s %s %d %d, sunrise time : %d:%d
25 %s %s %d %d, sunset time : %d:%d
H A Ddate_sunrise_variation8.phpt5 /* Prototype : mixed date_sunrise(mixed time [, int format [, float latitude [, float longitude [,…
6 * Description: Returns time of sunrise for a given day and location
26 //Iterate over different date and time
27 foreach( $time_date as $date => $time ){
29 var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, 90, 0 ) );
30 var_dump( date_sunrise($time, SUNFUNCS_RET_DOUBLE, 90, 0 ) );
31 var_dump( date_sunrise($time, SUNFUNCS_RET_TIMESTAMP, 90, 0 ) );
32 var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, -90, 0 ) );
33 var_dump( date_sunrise($time, SUNFUNCS_RET_DOUBLE, -90, 0 ) );
34 var_dump( date_sunrise($time, SUNFUNCS_RET_TIMESTAMP, -90, 0 ) );
H A Ddate_sunset_variation8.phpt5 /* Prototype : mixed date_sunset(mixed time [, int format [, float latitude [, float longitude [, …
6 * Description: Returns time of sunrise for a given day and location
26 //Iterate over different date and time
27 foreach( $time_date as $date => $time ){
29 var_dump( date_sunset($time, SUNFUNCS_RET_STRING, 90, 0 ) );
30 var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, 90, 0 ) );
31 var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, 90, 0 ) );
32 var_dump( date_sunset($time, SUNFUNCS_RET_STRING, -90, 0 ) );
33 var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, -90, 0 ) );
34 var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, -90, 0 ) );
H A Dbug48187.phpt12 $begin_t = time();
20 if (time() - $begin_t < 1) {
21 var_dump('time() difference less 1 second');
23 var_dump('time() difference greater or equal 1 second');
28 string(31) "time() difference less 1 second"
H A Dbug35885.phpt7 $time = time();
8 $ts = date(DATE_ISO8601, strtotime('NOW', $time));
9 $ts2 = date(DATE_ISO8601, $time);
H A DDateTime_construct_variation1.phpt2 Test new DateTime() function : usage variation - Passing unexpected values to first argument $time.
5 /* Prototype : DateTime::__construct ([ string $time="now" [, DateTimeZone $timezone=NULL ]] )
11 echo "*** Testing new DateTime(): usage variation - unexpected values to first argument \$time***\…
13 //Set the default time zone
100 foreach($inputs as $variation =>$time) {
104 var_dump( new DateTime($time) );
111 var_dump( new DateTime($time, $timezone) );
124 *** Testing new DateTime(): usage variation - unexpected values to first argument $time***
127 FAILED: DateTime::__construct(): Failed to parse time string (0) at position 0 (0): Unexpected char…
128 FAILED: DateTime::__construct(): Failed to parse time string (0) at position 0 (0): Unexpected char…
[all …]
H A Dstrtotime-mysql-64bit.phpt15 $time = strtotime($date);
17 if (is_integer($time)) {
18 var_dump(date('r', $time));
20 var_dump($time);
/PHP-7.3/ext/intl/tests/
H A Dbug58756_MessageFormatter.phpt15 $time = 1247013673;
19 $msgf = new MessageFormatter('en_US', '{0,date,full} {0,time,h:m:s a V}');
21 echo "date: " . date('l, F j, Y g:i:s A T', $time) . "\n";
22 echo "msgf: " . $msgf->format(array($time)) . "\n";
26 '{1, select, date {{0,date,full}} other {{0,time,h:m:s a V}}}');
28 echo "msgf2: ", $msgf->format(array($time, 'date')), " ",
29 $msgf->format(array($time, 'time')), "\n";
H A Dbug58756_MessageFormatter_variant2.phpt15 $time = 1247013673;
19 $msgf = new MessageFormatter('en_US', '{0,date,full} {0,time,h:m:s a V}');
21 echo "date: " . date('l, F j, Y g:i:s A T', $time) . "\n";
22 echo "msgf: " . $msgf->format(array($time)) . "\n";
26 '{1, select, date {{0,date,full}} other {{0,time,h:m:s a V}}}');
28 echo "msgf2: ", $msgf->format(array($time, 'date')), " ",
29 $msgf->format(array($time, 'time')), "\n";
/PHP-7.3/ext/standard/tests/time/
H A D001.phpt18 list($micro,$time)=explode(" ",microtime());
19 if ($time > $last_t || ($time == $last_t && $micro >= $last_m)) {
22 $result .= sprintf('%06d', $i).": $time $micro < $last_t $last_m\n";
25 $last_t = $time;
/PHP-7.3/ext/hash/
H A Dbench.php75 $time = array(); variable
83 $time[$algo] += microtime(true)-$start;
87 asort($time, SORT_NUMERIC);
88 foreach ($time as $a => $t) {
/PHP-7.3/ext/sqlite3/tests/
H A Dsqlite3_14_querysingle.phpt9 define('TIMENOW', time());
12 var_dump($db->exec('CREATE TABLE test (time INTEGER, id STRING)'));
15 var_dump($db->exec("INSERT INTO test (time, id) VALUES (" . TIMENOW . ", 'a')"));
16 var_dump($db->exec("INSERT INTO test (time, id) VALUES (" . TIMENOW . ", 'b')"));
20 var_dump($db->querySingle("SELECT id, time FROM test WHERE id = 'a'", true));
35 ["time"]=>
H A Dbug45798.phpt10 $db->exec('CREATE TABLE test (time INTEGER, id STRING)');
12 $db->exec("INSERT INTO test (time, id) VALUES (" . time() . ", 'a')");
13 $db->exec("INSERT INTO test (time, id) VALUES (" . time() . ", 'b')");

Completed in 40 milliseconds

12345678910>>...29