/PHP-8.3/ext/date/lib/ |
H A D | parse_tz.c | 409 tz->type[tz->bit64.typecnt].isdst = isdst; in add_new_ttinfo_index() 410 tz->type[tz->bit64.typecnt].abbr_idx = add_abbr(tz, abbr); in add_new_ttinfo_index() 411 tz->type[tz->bit64.typecnt].isstdcnt = 0; in add_new_ttinfo_index() 412 tz->type[tz->bit64.typecnt].isgmtcnt = 0; in add_new_ttinfo_index() 426 …tz->posix_info->type_index_std_type = find_ttinfo_index(tz, tz->posix_info->std_offset, 0, tz->pos… in integrate_posix_string() 428 …tz->posix_info->type_index_std_type = add_new_ttinfo_index(tz, tz->posix_info->std_offset, 0, tz->… in integrate_posix_string() 437 …tz->posix_info->type_index_dst_type = find_ttinfo_index(tz, tz->posix_info->dst_offset, 1, tz->pos… in integrate_posix_string() 502 &tz->timezone_abbr[tz->type[i].abbr_idx], in format_offset_type() 800 if (!tz->bit64.timecnt || !tz->trans) { in timelib_fetch_timezone_offset() 832 return &(tz->type[tz->trans_idx[tz->bit64.timecnt - 1]]); in timelib_fetch_timezone_offset() [all …]
|
H A D | parse_posix.c | 508 trans_begin += tz->posix_info->dst_begin->hour; in timelib_get_transitions_for_year() 509 trans_begin -= tz->posix_info->std_offset; in timelib_get_transitions_for_year() 512 trans_end += calc_transition(tz->posix_info->dst_end, year); in timelib_get_transitions_for_year() 513 trans_end += tz->posix_info->dst_end->hour; in timelib_get_transitions_for_year() 514 trans_end -= tz->posix_info->dst_offset; in timelib_get_transitions_for_year() 540 if (!tz->posix_info->dst_end) { in timelib_fetch_posix_timezone_offset() 542 *transition_time = tz->trans[tz->bit64.timecnt - 1]; in timelib_fetch_posix_timezone_offset() 544 return &(tz->type[tz->posix_info->type_index_std_type]); in timelib_fetch_posix_timezone_offset() 552 timelib_get_transitions_for_year(tz, year - 1, &transitions); in timelib_fetch_posix_timezone_offset() 553 timelib_get_transitions_for_year(tz, year, &transitions); in timelib_fetch_posix_timezone_offset() [all …]
|
H A D | tm2unixtime.c | 368 switch (tz->zone_type) { in do_adjust_timezone() 371 tz->is_localtime = 1; in do_adjust_timezone() 372 tz->sse += -tz->z; in do_adjust_timezone() 377 tz->is_localtime = 1; in do_adjust_timezone() 378 tz->sse += (-tz->z - tz->dst * SECS_PER_HOUR); in do_adjust_timezone() 383 tzi = tz->tz_info; in do_adjust_timezone() 406 if (current_offset == after_offset && tz->have_zone) { in do_adjust_timezone() 431 tz->is_localtime = 1; in do_adjust_timezone() 436 ((tz->sse - actual_offset) < actual_transition_time) in do_adjust_timezone() 445 tz->sse += adjustment; in do_adjust_timezone() [all …]
|
/PHP-8.3/ext/date/tests/ |
H A D | gh11281.phpt | 5 $tz = new DateTimeZone('+03:00'); 6 echo $tz->getName(), "\n"; 7 $tz = new DateTimeZone('+03:00:00'); 8 echo $tz->getName(), "\n"; 10 echo $tz->getName(), "\n"; 12 echo $tz->getName(), "\n"; 14 echo $tz->getName(), "\n"; 16 echo $tz->getName(), "\n"; 18 echo $tz->getName(), "\n"; 20 echo $tz->getName(), "\n"; [all …]
|
H A D | DateTimeZone_serialization.phpt | 5 $tz = new DateTimeZone("CEST"); 6 var_dump($tz->__serialize()); 8 $tz = new DateTimeZone("UTC"); 9 $tz->__unserialize( 15 var_dump($tz); 17 $tz->__unserialize( 23 var_dump($tz); 25 $tz->__unserialize( 31 var_dump($tz);
|
H A D | date_timezone_get_basic1.phpt | 9 $tz = date_timezone_get($object); 10 var_dump( timezone_name_get($tz) ); 14 $tz = date_timezone_get($object); 15 var_dump( timezone_name_get($tz) ); 19 $tz = date_timezone_get($object); 20 var_dump( timezone_name_get($tz) );
|
H A D | timezone_offset_get_basic1.phpt | 10 $tz = timezone_open("Europe/London"); 13 var_dump(timezone_offset_get($tz, $date)); 15 $tz = timezone_open("America/New_York"); 16 var_dump(timezone_offset_get($tz, $date)); 18 $tz = timezone_open("America/Los_Angeles"); 19 var_dump(timezone_offset_get($tz, $date));
|
H A D | bug67118.phpt | 9 public function __construct($time = 'now', $tz = NULL, $format = NULL) 11 if (!empty($tz) && !is_object($tz)) { 12 $tz = new DateTimeZone($tz); 15 @parent::__construct($time, $tz);
|
H A D | date-lenient-create.phpt | 5 $tz = new DateTimeZone("UTC"); 8 print_r( date_create_from_format( 'm/d/y', $date , $tz) ); 11 print_r( date_create_from_format( 'm/d/y+', $date , $tz)->setTime(0, 0) ); 14 print_r( date_create_from_format( '+m/d/y', $date , $tz)->setTime(0, 0) ); 17 print_r( date_create_from_format( 'm/d/y++', $date , $tz)->setTime(0, 0) ); 22 print_r( date_create_from_format( 'm/d/y+', $date , $tz)->setTime(0, 0) ); 25 print_r( date_create_from_format( '+m/d/y', $date , $tz)->setTime(0, 0) );
|
H A D | 68062.phpt | 6 $tz = new DateTimeZone('Europe/London'); 7 $dt = new DateTimeImmutable('2014-09-20', $tz); 9 echo $tz->getOffset($dt), "\n"; 11 echo $tz->getOffset(1);
|
H A D | bug54597.phpt | 7 $tz = new DateTimeZone("Europe/Amsterdam"); 8 $dateObject = new DateTime( 'January 0099', $tz ); 10 $dateObject = new DateTime( 'January 1, 0099', $tz ); 12 $dateObject = new DateTime( '0099-01', $tz );
|
H A D | date_timezone_set_basic1.phpt | 11 $tz = date_timezone_get($datetime); 12 echo "Default timezone: " . timezone_name_get($tz) . "\n"; 18 $tz = date_timezone_get($datetime); 19 echo "New timezone: " . timezone_name_get($tz) . "\n";
|
H A D | bug74274.phpt | 5 $tz = new DateTimeZone("Europe/Paris"); 6 $startDate = new \DateTime('2018-10-28 00:00:00', $tz); 7 $endDateBuggy = new \DateTime('2018-10-29 23:00:00', $tz);
|
/PHP-8.3/ext/intl/tests/ |
H A D | timezone_fromDateTimeZone_basic.phpt | 11 $tz = IntlTimeZone::fromDateTimeZone(new DateTimeZone('Europe/Amsterdam')); 12 var_dump($tz->getID(), $tz->getRawOffset()); 20 $tz = IntlTimeZone::fromDateTimeZone($dtz); 21 var_dump($tz->getID(), $tz->getRawOffset()); 28 $tz = IntlTimeZone::fromDateTimeZone($dtz); 29 var_dump($tz->getID(), $tz->getRawOffset() /* (3*60+40)*60000 */);
|
H A D | timezone_createEnumeration_basic.phpt | 8 $tz = IntlTimeZone::createEnumeration(); 9 var_dump(get_class($tz)); 10 $count = count(iterator_to_array($tz)); 13 $tz = intltz_create_enumeration(); 14 var_dump(get_class($tz)); 15 $count2 = count(iterator_to_array($tz));
|
H A D | timezone_createEnumeration_variation1.phpt | 8 $tz = IntlTimeZone::createEnumeration(3600000); 9 var_dump(get_class($tz)); 10 $count = count(iterator_to_array($tz)); 13 $tz->rewind(); 14 var_dump(in_array('Europe/Amsterdam', iterator_to_array($tz)));
|
H A D | timezone_createEnumeration_variation2.phpt | 8 $tz = IntlTimeZone::createEnumeration('NL'); 9 var_dump(get_class($tz)); 10 $count = count(iterator_to_array($tz)); 13 $tz->rewind(); 14 var_dump(in_array('Europe/Amsterdam', iterator_to_array($tz)));
|
H A D | timezone_getGMT_basic.phpt | 8 $tz = IntlTimeZone::getGMT(); 9 print_r($tz); 10 $tz = intltz_get_gmt(); 11 print_r($tz);
|
H A D | timezone_createTimeZone_basic.phpt | 8 $tz = IntlTimeZone::createTimeZone('GMT+01:00'); 9 print_r($tz); 10 $tz = intltz_create_time_zone('GMT+01:00'); 11 print_r($tz);
|
H A D | timezone_createDefault_basic.phpt | 8 $tz = IntlTimeZone::createDefault(); 9 print_r($tz); 10 $tz = intltz_create_default(); 11 print_r($tz);
|
H A D | timezone_getUnknown_basic.phpt | 10 $tz = IntlTimeZone::getUnknown(); 11 print_r($tz); 12 $tz = intltz_get_unknown(); 13 print_r($tz);
|
H A D | timezone_toDateTimeZone_basic.phpt | 11 function do_test(IntlTimeZone $tz, $proc = false) { 12 var_dump($tz->getID(), $tz->getRawOffset()); 14 $dtz = $tz->toDateTimeZone(); 16 $dtz = intltz_to_date_time_zone($tz);
|
H A D | timezone_clone_error.phpt | 13 $tz = new A(); 14 var_dump($tz); 16 var_dump(clone $tz);
|
H A D | timezone_equals_error.phpt | 13 $tz = new A(); 15 var_dump($tz, $tz2); 17 var_dump($tz == $tz2);
|
/PHP-8.3/ext/opcache/tests/ |
H A D | bug75556.phpt | 11 function createFromFormat($format, $date, ?\DateTimeZone $tz = null): ?\DateTimeInterface 13 if ($tz !== null 14 || ($tz instanceof \DateTimeZone && !in_array($tz->getName(), ['UTC', 'Z'], true))
|