src/ZonedDateTime.php
public function withSecond(int $second) : ZonedDateTime
    {
        return ZonedDateTime::of($this->localDateTime->withSecond($second), $this->timeZone);
    }
public function withSecond(int $second) : ZonedDateTime
    {
        return ZonedDateTime::of($this->localDateTime->withSecond($second), $this->timeZone);
    }
public function withSecond ( int $ second ) : ZonedDateTime { return ZonedDateTime :: of ( $ this -> localDateTime -> withSecond ( $ second ) , $ this -> timeZone ) ; }
Returns a copy of this ZonedDateTime with the second-of-minute altered.

@param int $second

@return ZonedDateTime
Returns a copy of this ZonedDateTime with the second - of - minute altered .