Exemplo n.º 1
0
 /**
  * Translates a date from one timezone to a date of this timezone.
  * The value of the date is not changed by this operation.
  *
  * @param   util.Date date
  * @return  util.Date
  */
 public function translate(Date $date)
 {
     $handle = clone $date->getHandle();
     date_timezone_set($handle, $this->tz);
     return new Date($handle);
 }