src/LocalDateTime.php
public function isPast(TimeZone $timeZone, Clock $clock = null) : bool
    {
        return $this->isBefore(LocalDateTime::now($timeZone, $clock));
    }
public function isPast(TimeZone $timeZone, Clock $clock = null) : bool
    {
        return $this->isBefore(LocalDateTime::now($timeZone, $clock));
    }
public function isPast ( TimeZone $ timeZone , Clock $ clock = null ) : bool { return $ this -> isBefore ( LocalDateTime :: now ( $ timeZone , $ clock ) ) ; }
Returns whether this LocalDateTime is in the past, in the given time-zone, according to the given clock.

If no clock is provided, the system clock is used.

@param TimeZone   $timeZone
@param Clock|null $clock

@return bool
Returns whether this LocalDateTime is in the past in the given time - zone according to the given clock .