lib/helpers/Date.php
public static function inPast($date, $time = null)
    {
        if (is_null($time)) {
            $time = self::time();
        }
        if (!is_int($date)) {
            $date = self::strtotime($date);
        }

        return $time > $date;
    }
public static function inPast($date, $time = null)
    {
        if (is_null($time)) {
            $time = self::time();
        }
        if (!is_int($date)) {
            $date = self::strtotime($date);
        }

        return $time > $date;
    }
public static function inPast ( $ date , $ time = null ) { if ( is_null ( $ time ) ) { $ time = self :: time ( ) ; } if ( ! is_int ( $ date ) ) { $ date = self :: strtotime ( $ date ) ; } return $ time > $ date ; }
Is the date in the past?

@param varies $date
@param int    $time (optional)

@return bool Is the time in the past or not
Is the date in the past?