Home
last modified time | relevance | path

Searched refs:cert_time (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython2/Lib/
Dssl.py953 def cert_time_to_seconds(cert_time): argument
972 month_number = months.index(cert_time[:3].title()) + 1
975 'format "%%b%s"' % (cert_time, time_format))
978 tt = strptime(cert_time[3:], time_format)
/external/python/cpython3/Lib/
Dssl.py1227 def cert_time_to_seconds(cert_time): argument
1246 month_number = months.index(cert_time[:3].title()) + 1
1249 'format "%%b%s"' % (cert_time, time_format))
1252 tt = strptime(cert_time[3:], time_format)
/external/python/cpython2/Lib/test/
Dtest_ssl.py124 def asn1time(cert_time): argument
129 dt = datetime.datetime.strptime(cert_time, fmt)
131 cert_time = dt.strftime(fmt)
133 if cert_time[4] == "0":
134 cert_time = cert_time[:4] + " " + cert_time[5:]
136 return cert_time
704 self.assertEqual(ssl.cert_time_to_seconds(cert_time=timestring), ts)
/external/python/cpython3/Lib/test/
Dtest_ssl.py183 def asn1time(cert_time): argument
188 dt = datetime.datetime.strptime(cert_time, fmt)
190 cert_time = dt.strftime(fmt)
192 if cert_time[4] == "0":
193 cert_time = cert_time[:4] + " " + cert_time[5:]
195 return cert_time
954 self.assertEqual(ssl.cert_time_to_seconds(cert_time=timestring), ts)
/external/python/cpython2/Doc/library/
Dssl.rst404 .. function:: cert_time_to_seconds(cert_time)
406 Return the time in seconds since the Epoch, given the ``cert_time``
/external/python/cpython3/Doc/library/
Dssl.rst393 .. function:: cert_time_to_seconds(cert_time)
395 Return the time in seconds since the Epoch, given the ``cert_time``