/php-src/ext/date/lib/ |
H A D | parse_date.re | 1033 tz = "("? [A-Za-z]{1,6} ")"? | [A-Z][a-z]+([_/-][A-Za-z]+)+; 1073 /* iso8601shorttz = hour24 [:] minutelz space? (tzcorrection | tz); */ 1074 iso8601normtz = 't'? hour24 [:.] minute [:.] secondlz space? (tzcorrection | tz); 1075 /* iso8601longtz = hour24 [:] minute [:] secondlz frac space? (tzcorrection | tz); */ 1078 /* gnunocolontz = hour24lz minutelz space? (tzcorrection | tz); */ 1080 /* iso8601nocolontz = hour24lz minutelz secondlz space? (tzcorrection | tz); */ 1884 tzcorrection | tz 1887 DEBUG_OUTPUT("tzcorrection | tz");
|
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 | 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 | timelib.h | 728 void timelib_set_timezone(timelib_time *t, timelib_tzinfo *tz); 770 void timelib_tzinfo_dtor(timelib_tzinfo *tz); 777 timelib_tzinfo* timelib_tzinfo_clone(timelib_tzinfo *tz); 785 int timelib_timestamp_is_in_dst(timelib_sll ts, timelib_tzinfo *tz); 795 timelib_time_offset *timelib_get_time_zone_info(timelib_sll ts, timelib_tzinfo *tz); 808 int timelib_get_time_zone_offset_info(timelib_sll ts, timelib_tzinfo *tz, int32_t* offset, timelib_… 830 void timelib_dump_tzinfo(timelib_tzinfo *tz); 896 timelib_rel_time* timelib_rel_time_clone(timelib_rel_time *tz); 1097 void timelib_get_transitions_for_year(timelib_tzinfo *tz, timelib_sll year, timelib_posix_transitio…
|
H A D | timelib_private.h | 163 ttinfo* timelib_fetch_posix_timezone_offset(timelib_tzinfo *tz, timelib_sll ts, timelib_sll *transi… 167 ttinfo* timelib_fetch_timezone_offset(timelib_tzinfo *tz, timelib_sll ts, timelib_sll *transition_t…
|
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 …]
|
H A D | unixtime2tm.c | 123 timelib_tzinfo *tz = tm->tz_info; in timelib_unixtime2local() local 140 gmt_offset = timelib_get_time_zone_info(ts, tz); in timelib_unixtime2local() 147 tm->tz_info = tz; in timelib_unixtime2local() 191 void timelib_set_timezone(timelib_time *t, timelib_tzinfo *tz) in timelib_set_timezone() argument 195 gmt_offset = timelib_get_time_zone_info(t->sse, tz); in timelib_set_timezone() 204 t->tz_info = tz; in timelib_set_timezone()
|
/php-src/ext/date/ |
H A D | php_date.c | 2015 new_obj->tzi.tz = old_obj->tzi.tz; in date_object_clone_timezone() 2055 return strcmp(o1->tzi.tz->name, o2->tzi.tz->name) ? 1 : 0; in date_object_compare_timezone() 2448 tzi = tzobj->tzi.tz; in php_date_initialize() 2881 tzobj->tzi.tz = tzi; in php_date_initialize_from_hash() 4041 zend_string *tz; in PHP_FUNCTION() local 4050 if (!timezone_initialize(tzobj, ZSTR_VAL(tz), ZSTR_LEN(tz), &warning_message)) { in PHP_FUNCTION() 4062 zend_string *tz; in PHP_METHOD() local 4071 if (!timezone_initialize(tzobj, ZSTR_VAL(tz), ZSTR_LEN(tz), &exception_message)) { in PHP_METHOD() 4316 …add_assoc_string(&element, "abbr", &tzobj->tzi.tz->timezone_abbr[tzobj->tzi.tz->type[tzobj->tzi.tz… in PHP_FUNCTION() 4366 if (tzobj->tzi.tz->posix_info && tzobj->tzi.tz->posix_info->dst_end) { in PHP_FUNCTION() [all …]
|
H A D | php_date.h | 73 timelib_tzinfo *tz; /* TIMELIB_ZONETYPE_ID */ member
|
/php-src/ext/date/tests/ |
H A D | 004.phpt | 7 $tz = array("UTC", "Asia/Jerusalem", "America/Chicago", "Europe/London"); 10 foreach ($tz as $zone) {
|
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 | DateTimeZone_getTransitions_basic1.phpt | 11 $tz = new DateTimeZone("Europe/London"); 13 $tran = $tz->getTransitions(-306972000, -37241999);
|
H A D | DateTimeZone_getTransitions_bug1.phpt | 11 $tz = new DateTimeZone($tzid); 12 foreach ($tz->getTransitions($from, $to) as $t) {
|
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 | DateTimeZone_serialize_errors.phpt | 8 $tz = unserialize($serialized);
|
H A D | bug45543.phpt | 18 $tz = $d1->getTimeZone(); 19 $d2->setTimeZone($tz);
|
H A D | bug48058.phpt | 8 $tz = new DateTimeZone("Europe/London"); 9 $tran = $tz->getTransitions();
|
H A D | bug52290.phpt | 5 $tz = 'UTC'; 6 date_default_timezone_set($tz); 10 $dt->setTimezone(new DateTimeZone($tz));
|
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 | bug62561.phpt | 5 $tz = new DateTimeZone('America/New_York'); 6 $ts = new DateTime('@1341115200', $tz);
|
H A D | bug62896.phpt | 7 $tz = new DateTimeZone('Europe/Berlin'); 20 $date->setTimezone($tz); 28 $date = new DateTime('2012-08-22 00:00:00 CEST', $tz);
|
H A D | bug64992.phpt | 7 $tz = 'America/Los_Angeles'; 16 echo "Time Zone offset for $tz for " , $dt->format('Y-m-d') , " is $gmto\n";
|
H A D | bug66019.phpt | 5 $tz = new DateTimeZone("Europe/Amsterdam"); 6 $dateObject = new DateTime( '2012-02-02T10', $tz );
|
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 | bug67118_2.phpt | 9 $tz = new DateTimeZone('UTC'); 12 parent::__construct($time, $tz); 16 parent::__construct($time.'C', $tz);
|