src/tools/web/Geo.php
function tzinfo($zone) {
		$ref=new DateTimeZone($zone);
		$loc=$ref->getLocation();
		$trn=$ref->getTransitions($now=time(),$now);
		$out=array(
			'offset'=>$ref->
				getOffset(new DateTime('now',new DateTimeZone('GMT')))/3600,
			'country'=>$loc['country_code'],
			'latitude'=>$loc['latitude'],
			'longitude'=>$loc['longitude'],
			'dst'=>$trn[0]['isdst']
		);
		unset($ref);
		return $out;
	}
function tzinfo($zone) {
		$ref=new DateTimeZone($zone);
		$loc=$ref->getLocation();
		$trn=$ref->getTransitions($now=time(),$now);
		$out=array(
			'offset'=>$ref->
				getOffset(new DateTime('now',new DateTimeZone('GMT')))/3600,
			'country'=>$loc['country_code'],
			'latitude'=>$loc['latitude'],
			'longitude'=>$loc['longitude'],
			'dst'=>$trn[0]['isdst']
		);
		unset($ref);
		return $out;
	}
function tzinfo ( $ zone ) { $ ref = new DateTimeZone ( $ zone ) ; $ loc = $ ref -> getLocation ( ) ; $ trn = $ ref -> getTransitions ( $ now = time ( ) , $ now ) ; $ out = array ( 'offset' => $ ref -> getOffset ( new DateTime ( 'now' , new DateTimeZone ( 'GMT' ) ) ) / 3600 , 'country' => $ loc [ 'country_code' ] , 'latitude' => $ loc [ 'latitude' ] , 'longitude' => $ loc [ 'longitude' ] , 'dst' => $ trn [ 0 ] [ 'isdst' ] ) ; unset ( $ ref ) ; return $ out ; }
Return information about specified Unix time zone
@return array
@param $zone string
Return information about specified Unix time zone