public static function isAfter($value, $limit, $inclusive = false)
    {
        $value = self::convertToDateTime($value);
        $limit = self::convertToDateTime($limit);

        if (false === $inclusive) {
            return \strtotime($value->format('Y-m-d H:i:s')) > \strtotime($limit->format('Y-m-d H:i:s'));
        }

        return \strtotime($value->format('Y-m-d H:i:s')) >= \strtotime($limit->format('Y-m-d H:i:s'));
    }
public static function isAfter($value, $limit, $inclusive = false)
    {
        $value = self::convertToDateTime($value);
        $limit = self::convertToDateTime($limit);

        if (false === $inclusive) {
            return \strtotime($value->format('Y-m-d H:i:s')) > \strtotime($limit->format('Y-m-d H:i:s'));
        }

        return \strtotime($value->format('Y-m-d H:i:s')) >= \strtotime($limit->format('Y-m-d H:i:s'));
    }
public static function isAfter ( $ value , $ limit , $ inclusive = false ) { $ value = self :: convertToDateTime ( $ value ) ; $ limit = self :: convertToDateTime ( $ limit ) ; if ( false === $ inclusive ) { return \ strtotime ( $ value -> format ( 'Y-m-d H:i:s' ) ) > \ strtotime ( $ limit -> format ( 'Y-m-d H:i:s' ) ) ; } return \ strtotime ( $ value -> format ( 'Y-m-d H:i:s' ) ) >= \ strtotime ( $ limit -> format ( 'Y-m-d H:i:s' ) ) ; }
Checks if a given date is happening after the given limiting date.

@param string|\DateTime $value
@param string|\DateTime $limit
@param bool             $inclusive

@return bool
Checks if a given date is happening after the given limiting date .