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

        Field\NanoOfSecond::check($nano);

        return new Instant($this->epochSecond, $nano);
    }
public function withNano(int $nano) : Instant
    {
        if ($nano === $this->nano) {
            return $this;
        }

        Field\NanoOfSecond::check($nano);

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

@param int $nano

@return Instant

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