Ejemplo n.º 1
0
 /**
  * Returns a copy of this {@code OffsetTime} with the specified number of nanoseconds added.
  * <p>
  * This adds the specified number of nanoseconds to this time, returning a new time.
  * The calculation wraps around midnight.
  * <p>
  * This instance is immutable and unaffected by this method call.
  *
  * @param int $nanos the nanos to add, may be negative
  * @return OffsetTime an {@code OffsetTime} based on this time with the nanoseconds added, not null
  */
 public function plusNanos($nanos)
 {
     return $this->_with($this->time->plusNanos($nanos), $this->offset);
 }