parameters: (cert_time)
docstring: Return the time in seconds since the Epoch, given the timestring
      representing the "notBefore" or "notAfter" date from a certificate
      in ``"%b %d %H:%M:%S %Y %Z"`` strptime format (C locale).
  
      "notBefore" or "notAfter" dates must use UTC (RFC 5280).
  
      Month is one of: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
      UTC should be specified as GMT (see ASN1_TIME_print())
docstring_summary: Return the time in seconds since the Epoch, given the timestring
      representing the "notBefore" or "notAfter" date from a certificate
      in ``"%b %d %H:%M:%S %Y %Z"`` strptime format (C locale).
docstring_tokens: Return the time in seconds since the Epoch given the timestring representing the notBefore or notAfter date from a certificate in %b %d %H : %M : %S %Y %Z strptime format ( C locale ) .
function: def cert_time_to_seconds(cert_time):
      """Return the time in seconds since the Epoch, given the timestring
      representing the "notBefore" or "notAfter" date from a certificate
      in ``"%b %d %H:%M:%S %Y %Z"`` strptime format (C locale).
  
      "notBefore" or "notAfter" dates must use UTC (RFC 5280).
  
      Month is one of: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
      UTC should be specified as GMT (see ASN1_TIME_print())
      """
      from time import strptime
      from calendar import timegm
  
      months = (
          "Jan","Feb","Mar","Apr","May","Jun",
          "Jul","Aug","Sep","Oct","Nov","Dec"
      )
      time_format = ' %d %H:%M:%S %Y GMT' # NOTE: no month, fixed GMT
      try:
          month_number = months.index(cert_time[:3].title()) + 1
      except ValueError:
          raise ValueError('time data %r does not match '
                           'format "%%b%s"' % (cert_time, time_format))
      else:
          # found valid month
          tt = strptime(cert_time[3:], time_format)
          # return an integer, the previous mktime()-based implementation
          # returned a float (fractional seconds are always zero here).
          return timegm((tt[0], month_number) + tt[2:6])
function_tokens: def cert_time_to_seconds ( cert_time ) : from time import strptime from calendar import timegm months = ( "Jan" , "Feb" , "Mar" , "Apr" , "May" , "Jun" , "Jul" , "Aug" , "Sep" , "Oct" , "Nov" , "Dec" ) time_format = ' %d %H:%M:%S %Y GMT' # NOTE: no month, fixed GMT try : month_number = months . index ( cert_time [ : 3 ] . title ( ) ) + 1 except ValueError : raise ValueError ( 'time data %r does not match ' 'format "%%b%s"' % ( cert_time , time_format ) ) else : # found valid month tt = strptime ( cert_time [ 3 : ] , time_format ) # return an integer, the previous mktime()-based implementation # returned a float (fractional seconds are always zero here). return timegm ( ( tt [ 0 ] , month_number ) + tt [ 2 : 6 ] )