Jyxo\Time\Time::hasHappened PHP Method

hasHappened() public method

Compares the internal date/time with the current local time of the appropriate time zone.
public hasHappened ( ) : boolean
return boolean
    public function hasHappened() : bool
    {
        return '+' === $this->dateTime->diff(\DateTime::createFromFormat('U', (string) time(), $this->dateTime->getTimezone()))->format('%R');
    }