src/Models/Predicates/Predicates.php
public static function dateBefore($fragment, $before): string
    {
        if ($before instanceof DateTime) {
            $before = $before->getTimestamp() * 1000;
        }
        return SimplePredicate::query("date.before", $fragment, array($before));
    }
public static function dateBefore($fragment, $before): string
    {
        if ($before instanceof DateTime) {
            $before = $before->getTimestamp() * 1000;
        }
        return SimplePredicate::query("date.before", $fragment, array($before));
    }
@param string       $fragment
@param DateTime|int $before

@return string