Home
last modified time | relevance | path

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

12

/PHP-5.4/ext/date/lib/
H A Dparse_tz.c236 &tz->timezone_abbr[tz->type[0].abbr_idx], in timelib_dump_tzinfo()
242 tz->trans[i], tz->trans[i], tz->trans_idx[i], in timelib_dump_tzinfo()
244 tz->type[tz->trans_idx[i]].isdst, in timelib_dump_tzinfo()
245 tz->type[tz->trans_idx[i]].abbr_idx, in timelib_dump_tzinfo()
246 &tz->timezone_abbr[tz->type[tz->trans_idx[i]].abbr_idx], in timelib_dump_tzinfo()
247 tz->type[tz->trans_idx[i]].isstdcnt, in timelib_dump_tzinfo()
248 tz->type[tz->trans_idx[i]].isgmtcnt in timelib_dump_tzinfo()
341 if (!tz->timecnt || !tz->trans) { in fetch_timezone_offset()
372 return &(tz->type[tz->trans_idx[i - 1]]); in fetch_timezone_offset()
376 return &(tz->type[tz->trans_idx[tz->timecnt - 1]]); in fetch_timezone_offset()
[all …]
H A Dtimelib.c119 tmp->leapcnt = tz->leapcnt; in timelib_tzinfo_clone()
120 tmp->timecnt = tz->timecnt; in timelib_tzinfo_clone()
121 tmp->typecnt = tz->typecnt; in timelib_tzinfo_clone()
122 tmp->charcnt = tz->charcnt; in timelib_tzinfo_clone()
126 memcpy(tmp->trans, tz->trans, tz->timecnt * sizeof(int32_t)); in timelib_tzinfo_clone()
127 memcpy(tmp->trans_idx, tz->trans_idx, tz->timecnt * sizeof(unsigned char)); in timelib_tzinfo_clone()
130 memcpy(tmp->type, tz->type, tz->typecnt * sizeof(struct ttinfo)); in timelib_tzinfo_clone()
133 memcpy(tmp->timezone_abbr, tz->timezone_abbr, tz->charcnt); in timelib_tzinfo_clone()
136 memcpy(tmp->leap_times, tz->leap_times, tz->leapcnt * sizeof(tlinfo)); in timelib_tzinfo_clone()
150 TIMELIB_TIME_FREE(tz); in timelib_tzinfo_dtor()
[all …]
H A Dtm2unixtime.c363 switch (tz->zone_type) { in do_adjust_timezone()
366 tz->is_localtime = 1; in do_adjust_timezone()
367 return tz->z * 60; in do_adjust_timezone()
373 tz->is_localtime = 1; in do_adjust_timezone()
374 tmp = tz->z; in do_adjust_timezone()
375 tmp -= tz->dst * 60; in do_adjust_timezone()
382 tzi = tz->tz_info; in do_adjust_timezone()
392 tz->is_localtime = 1; in do_adjust_timezone()
405 tmp = -tz->z; in do_adjust_timezone()
417 if (tz->tz_abbr) { in do_adjust_timezone()
[all …]
H A Dtimelib.h96 void timelib_set_timezone(timelib_time *t, timelib_tzinfo *tz);
101 int timelib_timestamp_is_in_dst(timelib_sll ts, timelib_tzinfo *tz);
102 timelib_time_offset *timelib_get_time_zone_info(timelib_sll ts, timelib_tzinfo *tz);
104 void timelib_dump_tzinfo(timelib_tzinfo *tz);
112 void timelib_tzinfo_dtor(timelib_tzinfo *tz);
113 timelib_tzinfo* timelib_tzinfo_clone(timelib_tzinfo *tz);
117 timelib_rel_time* timelib_rel_time_clone(timelib_rel_time *tz);
H A Dunixtime2tm.c178 timelib_tzinfo *tz = tm->tz_info; in timelib_unixtime2local() local
194 gmt_offset = timelib_get_time_zone_info(ts, tz); in timelib_unixtime2local()
201 tm->tz_info = tz; in timelib_unixtime2local()
245 void timelib_set_timezone(timelib_time *t, timelib_tzinfo *tz) in timelib_set_timezone() argument
249 gmt_offset = timelib_get_time_zone_info(t->sse, tz); in timelib_set_timezone()
258 t->tz_info = tz; in timelib_set_timezone()
/PHP-5.4/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 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);
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);
H A Dbug52290.phpt5 $tz = 'UTC';
6 date_default_timezone_set($tz);
10 $dt->setTimezone(new DateTimeZone($tz));
H A Dtimezone_offset_get_error.phpt13 $tz = timezone_open("Europe/London");
22 var_dump( timezone_offset_get($tz) );
26 var_dump( timezone_offset_get($tz, $date, $extra_arg) );
38 var_dump( timezone_offset_get($tz, $invalid_obj) );
40 var_dump( timezone_offset_get($tz, $invalid_obj) );
42 var_dump( timezone_offset_get($tz, $invalid_obj) );
H A Dtimezone_transitions_get_basic1.phpt17 $tz = timezone_open("Europe/London");
19 $tran = timezone_transitions_get($tz);
22 $tran = timezone_transitions_get($tz);
H A DDateTimeZone_getOffset_error.phpt14 $tz = new DateTimeZone("Europe/London");
20 var_dump( $tz->getOffset() );
24 var_dump( $tz->getOffset($date, $extra_arg) );
H A Dbug48058.phpt8 $tz = new DateTimeZone("Europe/London");
9 $tran = $tz->getTransitions();
H A Dmktime-3-64bit.phpt12 foreach ($tzs as $tz) {
13 echo $tz, "\n";
14 date_default_timezone_set($tz);
H A Dmktime-3.phpt12 foreach ($tzs as $tz) {
13 echo $tz, "\n";
14 date_default_timezone_set($tz);
H A Dbug45543.phpt18 $tz = $d1->getTimeZone();
19 $d2->setTimeZone($tz);
H A Dbug62561.phpt5 $tz = new DateTimeZone('America/New_York');
6 $ts = new DateTime('@1341115200', $tz);
H A Drfc-datetime_and_daylight_saving_time-type3-bs.phpt9 $tz = new DateTimeZone('America/New_York');
18 $end->setTimeZone($tz);
43 $end->setTimeZone($tz);
50 $end->setTimeZone($tz);
63 $end->setTimeZone($tz);
H A Dbug62896.phpt7 $tz = new DateTimeZone('Europe/Berlin');
20 $date->setTimezone($tz);
28 $date = new DateTime('2012-08-22 00:00:00 CEST', $tz);

Completed in 34 milliseconds

12