MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / parse_date

Function parse_date

thirdparty/bottle/bottle.py:3364–3370  ·  view source on GitHub ↗

Parse rfc1123, rfc850 and asctime timestamps and return UTC epoch.

(ims)

Source from the content-addressed store, hash-verified

3362
3363
3364def parse_date(ims):
3365 """ Parse rfc1123, rfc850 and asctime timestamps and return UTC epoch. """
3366 try:
3367 ts = email.utils.parsedate_tz(ims)
3368 return calendar.timegm(ts[:8] + (0, )) - (ts[9] or 0)
3369 except (TypeError, ValueError, IndexError, OverflowError):
3370 return None
3371
3372
3373def parse_auth(header):

Callers 2

BaseResponseClass · 0.85
static_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…