Home
last modified time | relevance | path

Searched refs:tz (Results 1 – 25 of 70) sorted by relevance

123

/PHP-8.0/ext/date/lib/
H A Dparse_tz.c415 &tz->timezone_abbr[tz->type[0].abbr_idx], in timelib_dump_tzinfo()
421 tz->trans[i], tz->trans[i], tz->trans_idx[i], in timelib_dump_tzinfo()
423 tz->type[tz->trans_idx[i]].isdst, in timelib_dump_tzinfo()
424 tz->type[tz->trans_idx[i]].abbr_idx, in timelib_dump_tzinfo()
425 &tz->timezone_abbr[tz->type[tz->trans_idx[i]].abbr_idx], in timelib_dump_tzinfo()
426 tz->type[tz->trans_idx[i]].isstdcnt, in timelib_dump_tzinfo()
427 tz->type[tz->trans_idx[i]].isgmtcnt in timelib_dump_tzinfo()
635 if (!tz->bit64.timecnt || !tz->trans) { in fetch_timezone_offset()
657 return &(tz->type[tz->trans_idx[i - 1]]); in fetch_timezone_offset()
661 return &(tz->type[tz->trans_idx[tz->bit64.timecnt - 1]]); in fetch_timezone_offset()
[all …]
H A Dtm2unixtime.c429 switch (tz->zone_type) { in do_adjust_timezone()
432 tz->is_localtime = 1; in do_adjust_timezone()
433 return -tz->z; in do_adjust_timezone()
439 tz->is_localtime = 1; in do_adjust_timezone()
440 tmp = -tz->z; in do_adjust_timezone()
441 tmp -= tz->dst * 3600; in do_adjust_timezone()
447 tzi = tz->tz_info; in do_adjust_timezone()
457 tz->is_localtime = 1; in do_adjust_timezone()
470 tmp = -tz->z; in do_adjust_timezone()
479 tz->z = gmt_offset->offset; in do_adjust_timezone()
[all …]
/PHP-8.0/ext/intl/tests/
H A Dtimezone_fromDateTimeZone_basic.phpt13 $tz = IntlTimeZone::fromDateTimeZone(new DateTimeZone('Europe/Amsterdam'));
14 var_dump($tz->getID(), $tz->getRawOffset());
22 $tz = IntlTimeZone::fromDateTimeZone($dtz);
23 var_dump($tz->getID(), $tz->getRawOffset());
30 $tz = IntlTimeZone::fromDateTimeZone($dtz);
31 var_dump($tz->getID(), $tz->getRawOffset() /* (3*60+40)*60000 */);
H A Dtimezone_createEnumeration_basic.phpt10 $tz = IntlTimeZone::createEnumeration();
11 var_dump(get_class($tz));
12 $count = count(iterator_to_array($tz));
15 $tz = intltz_create_enumeration();
16 var_dump(get_class($tz));
17 $count2 = count(iterator_to_array($tz));
H A Dtimezone_createEnumeration_variation1.phpt10 $tz = IntlTimeZone::createEnumeration(3600000);
11 var_dump(get_class($tz));
12 $count = count(iterator_to_array($tz));
15 $tz->rewind();
16 var_dump(in_array('Europe/Amsterdam', iterator_to_array($tz)));
H A Dtimezone_createEnumeration_variation2.phpt10 $tz = IntlTimeZone::createEnumeration('NL');
11 var_dump(get_class($tz));
12 $count = count(iterator_to_array($tz));
15 $tz->rewind();
16 var_dump(in_array('Europe/Amsterdam', iterator_to_array($tz)));
H A Dtimezone_getGMT_basic.phpt10 $tz = IntlTimeZone::getGMT();
11 print_r($tz);
12 $tz = intltz_get_gmt();
13 print_r($tz);
H A Dtimezone_createTimeZone_basic.phpt10 $tz = IntlTimeZone::createTimeZone('GMT+01:00');
11 print_r($tz);
12 $tz = intltz_create_time_zone('GMT+01:00');
13 print_r($tz);
H A Dtimezone_createDefault_basic.phpt10 $tz = IntlTimeZone::createDefault();
11 print_r($tz);
12 $tz = intltz_create_default();
13 print_r($tz);
H A Dtimezone_getUnknown_basic.phpt12 $tz = IntlTimeZone::getUnknown();
13 print_r($tz);
14 $tz = intltz_get_unknown();
15 print_r($tz);
H A Dtimezone_toDateTimeZone_basic.phpt13 function do_test(IntlTimeZone $tz, $proc = false) {
14 var_dump($tz->getID(), $tz->getRawOffset());
16 $dtz = $tz->toDateTimeZone();
18 $dtz = intltz_to_date_time_zone($tz);
H A Dtimezone_clone_error.phpt15 $tz = new A();
16 var_dump($tz);
18 var_dump(clone $tz);
H A Dtimezone_equals_error.phpt15 $tz = new A();
17 var_dump($tz, $tz2);
19 var_dump($tz == $tz2);
H A Dtimezone_hasSameRules_error.phpt18 $tz = IntlTimeZone::createTimeZone('Europe/Lisbon');
20 var_dump($tz->hasSameRules('foo'));
27 var_dump(intltz_has_same_rules(null, $tz));
/PHP-8.0/ext/date/tests/
H A Ddate_timezone_get_basic1.phpt9 $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 Dtimezone_offset_get_basic1.phpt10 $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 Dbug67118.phpt9 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 D68062.phpt6 $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 Dbug54597.phpt7 $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 Ddate-lenient-create.phpt5 $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 Ddate_timezone_set_basic1.phpt11 $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 Dbug67118_2.phpt9 $tz = new DateTimeZone('UTC');
12 parent::__construct($time, $tz);
16 parent::__construct($time.'C', $tz);
H A Drfc-datetime_and_daylight_saving_time-type3-bd2.phpt20 $tz = new DateTimeZone('America/New_York');
27 $end->setTimeZone($tz);
33 $end->setTimeZone($tz);
39 $end->setTimeZone($tz);
45 $end->setTimeZone($tz);
/PHP-8.0/ext/opcache/tests/
H A Dbug75556.phpt11 function createFromFormat($format, $date, ?\DateTimeZone $tz = null): ?\DateTimeInterface
13 if ($tz !== null
14 || ($tz instanceof \DateTimeZone && !in_array($tz->getName(), ['UTC', 'Z'], true))
/PHP-8.0/ext/intl/common/
H A Dcommon_date.cpp49 : ((php_timezone_obj*)object)->tzi.tz->name; in timezone_convert_datetimezone()
97 U_CFUNC int intl_datetime_decompose(zval *z, double *millis, TimeZone **tz, in intl_datetime_decompose() argument
111 if (tz) { in intl_datetime_decompose()
112 *tz = NULL; in intl_datetime_decompose()
135 if (tz) { in intl_datetime_decompose()
147 *tz = TimeZone::getGMT()->clone(); in intl_datetime_decompose()
149 *tz = timezone_convert_datetimezone(datetime->time->zone_type, in intl_datetime_decompose()
151 if (*tz == NULL) { in intl_datetime_decompose()

Completed in 25 milliseconds

123