def parse(self, *args, **kwargs):
     value = _DateHeader.parse(self, *args, **kwargs)
     if value and value > now():
         raise HTTPBadRequest((
           "Please check your system clock.\r\n"
           "According to this server, the time provided in the\r\n"
           "%s header is in the future.\r\n") % self.name)
     return value
 def parse(self, *args, **kwargs):
     """ return the time value (in seconds since 1970) """
     value = self.__call__(*args, **kwargs)
     if value:
         try:
             return mktime_tz(parsedate_tz(value))
         except (TypeError, OverflowError):
             raise HTTPBadRequest((
                 "Received an ill-formed timestamp for %s: %s\r\n") %
                 (self.name, value))