src/LocalTime.php
public function withNano(int $nano) : LocalTime
    {
        if ($nano === $this->nano) {
            return $this;
        }

        Field\NanoOfSecond::check($nano);

        return new LocalTime($this->hour, $this->minute, $this->second, $nano);
    }
public function withNano(int $nano) : LocalTime
    {
        if ($nano === $this->nano) {
            return $this;
        }

        Field\NanoOfSecond::check($nano);

        return new LocalTime($this->hour, $this->minute, $this->second, $nano);
    }
public function withNano ( int $ nano ) : LocalTime { if ( $ nano === $ this -> nano ) { return $ this ; } Field \ NanoOfSecond :: check ( $ nano ) ; return new LocalTime ( $ this -> hour , $ this -> minute , $ this -> second , $ nano ) ; }
Returns a copy of this LocalTime with the nano-of-second value altered.

@param int $nano The new nano-of-second.

@return LocalTime

@throws DateTimeException If the nano-of-second if not valid.
Returns a copy of this LocalTime with the nano - of - second value altered .