Home
last modified time | relevance | path

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

123

/PHP-5.5/ext/date/lib/
H A Dparse_tz.c276 &tz->timezone_abbr[tz->type[0].abbr_idx], in timelib_dump_tzinfo()
282 tz->trans[i], tz->trans[i], tz->trans_idx[i], in timelib_dump_tzinfo()
284 tz->type[tz->trans_idx[i]].isdst, in timelib_dump_tzinfo()
285 tz->type[tz->trans_idx[i]].abbr_idx, in timelib_dump_tzinfo()
286 &tz->timezone_abbr[tz->type[tz->trans_idx[i]].abbr_idx], in timelib_dump_tzinfo()
287 tz->type[tz->trans_idx[i]].isstdcnt, in timelib_dump_tzinfo()
288 tz->type[tz->trans_idx[i]].isgmtcnt in timelib_dump_tzinfo()
408 if (!tz->bit32.timecnt || !tz->trans) { in fetch_timezone_offset()
439 return &(tz->type[tz->trans_idx[i - 1]]); in fetch_timezone_offset()
443 return &(tz->type[tz->trans_idx[tz->bit32.timecnt - 1]]); in fetch_timezone_offset()
[all …]
H A Dtimelib.c128 memcpy(tmp->trans, tz->trans, tz->bit32.timecnt * sizeof(int32_t)); in timelib_tzinfo_clone()
129 memcpy(tmp->trans_idx, tz->trans_idx, tz->bit32.timecnt * sizeof(unsigned char)); in timelib_tzinfo_clone()
132 memcpy(tmp->type, tz->type, tz->bit32.typecnt * sizeof(struct ttinfo)); in timelib_tzinfo_clone()
135 memcpy(tmp->timezone_abbr, tz->timezone_abbr, tz->bit32.charcnt); in timelib_tzinfo_clone()
138 memcpy(tmp->leap_times, tz->leap_times, tz->bit32.leapcnt * sizeof(tlinfo)); in timelib_tzinfo_clone()
145 TIMELIB_TIME_FREE(tz->name); in timelib_tzinfo_dtor()
146 TIMELIB_TIME_FREE(tz->trans); in timelib_tzinfo_dtor()
147 TIMELIB_TIME_FREE(tz->trans_idx); in timelib_tzinfo_dtor()
148 TIMELIB_TIME_FREE(tz->type); in timelib_tzinfo_dtor()
152 TIMELIB_TIME_FREE(tz); in timelib_tzinfo_dtor()
[all …]
H A Dtm2unixtime.c371 switch (tz->zone_type) { in do_adjust_timezone()
374 tz->is_localtime = 1; in do_adjust_timezone()
375 return tz->z * 60; in do_adjust_timezone()
381 tz->is_localtime = 1; in do_adjust_timezone()
382 tmp = tz->z; in do_adjust_timezone()
383 tmp -= tz->dst * 60; in do_adjust_timezone()
390 tzi = tz->tz_info; in do_adjust_timezone()
400 tz->is_localtime = 1; in do_adjust_timezone()
413 tmp = -tz->z; in do_adjust_timezone()
425 if (tz->tz_abbr) { in do_adjust_timezone()
[all …]
H A Dtimelib.h100 void timelib_set_timezone(timelib_time *t, timelib_tzinfo *tz);
105 int timelib_timestamp_is_in_dst(timelib_sll ts, timelib_tzinfo *tz);
106 timelib_time_offset *timelib_get_time_zone_info(timelib_sll ts, timelib_tzinfo *tz);
108 void timelib_dump_tzinfo(timelib_tzinfo *tz);
117 void timelib_tzinfo_dtor(timelib_tzinfo *tz);
118 timelib_tzinfo* timelib_tzinfo_clone(timelib_tzinfo *tz);
122 timelib_rel_time* timelib_rel_time_clone(timelib_rel_time *tz);
/PHP-5.5/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_createDefault_basic.phpt10 $tz = IntlTimeZone::createDefault();
11 print_r($tz);
12 $tz = intltz_create_default();
13 print_r($tz);
H A Dtimezone_createTimeZone_basic.phpt12 $tz = IntlTimeZone::createTimeZone('GMT+01:00');
13 print_r($tz);
14 $tz = intltz_create_time_zone('GMT+01:00');
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_getUnknown_basic.phpt14 $tz = IntlTimeZone::getUnknown();
15 print_r($tz);
16 $tz = intltz_get_unknown();
17 print_r($tz);
H A Dtimezone_getDisplayName_error.phpt11 $tz = IntlTimeZone::createTimeZone('Europe/Lisbon');
12 var_dump($tz->getDisplayName(array()));
13 var_dump($tz->getDisplayName(false, array()));
14 var_dump($tz->getDisplayName(false, -1));
15 var_dump($tz->getDisplayName(false, IntlTimeZone::DISPLAY_SHORT, array()));
16 var_dump($tz->getDisplayName(false, IntlTimeZone::DISPLAY_SHORT, NULL, NULL));
H A Dtimezone_clone_error.phpt15 $tz = new A();
16 var_dump($tz);
18 var_dump(clone $tz);
H A Dtimezone_getOffset_error.phpt11 $tz = IntlTimeZone::createTimeZone('Europe/Lisbon');
12 var_dump($tz->getOffset(INF, true, $a, $a));
13 var_dump($tz->getOffset(time()*1000, true, $a));
14 var_dump($tz->getOffset(time()*1000, true, $a, $a, $a));
/PHP-5.5/ext/date/tests/
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 Ddate_timezone_get_basic1.phpt15 $tz = date_timezone_get($object);
16 var_dump( timezone_name_get($tz) );
20 $tz = date_timezone_get($object);
21 var_dump( timezone_name_get($tz) );
25 $tz = date_timezone_get($object);
26 var_dump( timezone_name_get($tz) );
H A Dtimezone_offset_get_basic1.phpt16 $tz = timezone_open("Europe/London");
19 var_dump(timezone_offset_get($tz, $date));
21 $tz = timezone_open("America/New_York");
22 var_dump(timezone_offset_get($tz, $date));
24 $tz = timezone_open("America/Los_Angeles");
25 var_dump(timezone_offset_get($tz, $date));
H A D68062.phpt6 $tz = new DateTimeZone('Europe/London');
7 $dt = new DateTimeImmutable('2014-09-20', $tz);
9 echo $tz->getOffset($dt);
10 echo $tz->getOffset(1);
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 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_timezone_set_basic1.phpt17 $tz = date_timezone_get($datetime);
18 echo "Default timezone: " . timezone_name_get($tz) . "\n";
24 $tz = date_timezone_get($datetime);
25 echo "New timezone: " . timezone_name_get($tz) . "\n";
H A Ddate_timestamp_get.phpt10 $tz = date_timestamp_get(new DateTime());
11 var_dump(is_int($tz));
13 $tz = date_timestamp_get(time());
H A Dbug67118_2.phpt9 $tz = new DateTimeZone('UTC');
12 parent::__construct($time, $tz);
16 parent::__construct($time.'C', $tz);

Completed in 34 milliseconds

123