Use int() instead of long()
If dateutil is present, we'll use that. If not, we'll use some regexes from the fixed_datetime module.