private static function fromTimestamp($value)
    {
        $result = false;
        if (empty($value)) {
            return $result;
        }

        $result = new \DateTime($value);

        return $result->getTimestamp();
    }
private static function fromTimestamp($value)
    {
        $result = false;
        if (empty($value)) {
            return $result;
        }

        $result = new \DateTime($value);

        return $result->getTimestamp();
    }
private static function fromTimestamp ( $ value ) { $ result = false ; if ( empty ( $ value ) ) { return $ result ; } $ result = new \ DateTime ( $ value ) ; return $ result -> getTimestamp ( ) ; }
Convert db time to unix timestamp

@param $value

@return bool|int
Convert db time to unix timestamp