/PHP-7.4/ext/date/lib/ |
H A D | tm2unixtime.c | 153 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 D | parse_date.re | 95 #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 … 1087 s->time->h = s->time->i = s->time->s = 0; 1114 s->time->h = s->time->i = s->time->s = 0; 1855 …in.time->y = in.time->d = in.time->m = in.time->h = in.time->i = in.time->s = in.time->us = in.tim… 1889 if (in.time->have_time && !timelib_valid_time( in.time->h, in.time->i, in.time->s)) { 1893 if (in.time->have_date && !timelib_valid_date( in.time->y, in.time->m, in.time->d)) { 1924 time->h = time->i = time->s = 0; 2246 s->time->h = s->time->i = s->time->s = 0; 2503 time.y, time.m, time.d, time.h, time.i, time.s, time.f, time.z, time.dst); [all …]
|
H A D | README.rst | 4 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.4/ext/standard/tests/file/ |
H A D | 005_variation2.phpt | 88 -- 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 D | 005_variation-win32.phpt | 34 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 D | 005_variation2-win32.phpt | 74 -- 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.4/ext/ftp/tests/ |
H A D | ftp_mdtm_basic.phpt | 22 $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.4/ext/date/tests/ |
H A D | date_sunrise_variation9.phpt | 8 * 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 D | date_sunset_variation9.phpt | 2 …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 D | date_sunrise_and_sunset_basic.phpt | 8 /* 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 D | date_sunrise_variation8.phpt | 5 /* 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 D | date_sunset_variation8.phpt | 5 /* 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 D | bug35885.phpt | 7 $time = time(); 8 $ts = date(DATE_ISO8601, strtotime('NOW', $time)); 9 $ts2 = date(DATE_ISO8601, $time);
|
H A D | strtotime-mysql-64bit.phpt | 15 $time = strtotime($date); 17 if (is_integer($time)) { 18 var_dump(date('r', $time)); 20 var_dump($time);
|
H A D | strtotime-mysql.phpt | 15 $time = strtotime($date); 17 if (is_integer($time)) { 18 var_dump(date('r', $time)); 20 var_dump($time);
|
/PHP-7.4/ext/intl/tests/ |
H A D | bug58756_MessageFormatter.phpt | 15 $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 D | bug58756_MessageFormatter_variant2.phpt | 15 $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.4/ext/hash/ |
H A D | bench.php | 76 $time = array(); variable 84 $time[$algo] += microtime(true)-$start; 88 asort($time, SORT_NUMERIC); 89 foreach ($time as $a => $t) {
|
/PHP-7.4/ext/standard/tests/time/ |
H A D | 001.phpt | 18 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.4/ext/sqlite3/tests/ |
H A D | sqlite3_14_querysingle.phpt | 9 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 D | bug45798.phpt | 10 $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')");
|
/PHP-7.4/ext/dba/tests/ |
H A D | dba_db1.phpt | 22 Failed to write "key number 6" 2nd time 23 Content 2 replaced 2nd time 29 string(27) "Content 2 replaced 2nd time" 39 Failed to write "key number 6" 2nd time 40 Content 2 replaced 2nd time 46 string(27) "Content 2 replaced 2nd time"
|
H A D | dba_db2.phpt | 22 Failed to write "key number 6" 2nd time 23 Content 2 replaced 2nd time 29 string(27) "Content 2 replaced 2nd time" 39 Failed to write "key number 6" 2nd time 40 Content 2 replaced 2nd time 46 string(27) "Content 2 replaced 2nd time"
|
H A D | dba_db3.phpt | 22 Failed to write "key number 6" 2nd time 23 Content 2 replaced 2nd time 29 string(27) "Content 2 replaced 2nd time" 39 Failed to write "key number 6" 2nd time 40 Content 2 replaced 2nd time 46 string(27) "Content 2 replaced 2nd time"
|
H A D | dba_inifile.phpt | 26 "key number 6" written 2nd time 27 Content 2 replaced 2nd time 33 string(27) "Content 2 replaced 2nd time" 43 "key number 6" written 2nd time 44 Content 2 replaced 2nd time 50 string(27) "Content 2 replaced 2nd time"
|