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

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

        return new Instant($epochSecond, $this->nano);
    }
public function withEpochSecond ( int $ epochSecond ) : Instant { if ( $ epochSecond === $ this -> epochSecond ) { return $ this ; } return new Instant ( $ epochSecond , $ this -> nano ) ; }
Returns a copy of this Instant with epoch second altered.

@param int $epochSecond

@return Instant
Returns a copy of this Instant with epoch second altered .