示例#1
0
 /**
  * Returns a copy of this {@code OffsetTime} with the specified number of hours subtracted.
  * <p>
  * This subtracts the specified number of hours from this time, returning a new time.
  * The calculation wraps around midnight.
  * <p>
  * This instance is immutable and unaffected by this method call.
  *
  * @param int $hours the hours to subtract, may be negative
  * @return OffsetTime an {@code OffsetTime} based on this time with the hours subtracted, not null
  */
 public function minusHours($hours)
 {
     return $this->_with($this->time->minusHours($hours), $this->offset);
 }