MCPcopy Create free account
hub / github.com/clips/pattern / _parse_date_asctime

Function _parse_date_asctime

pattern/web/feed/feedparser.py:3526–3533  ·  view source on GitHub ↗

Parse asctime-style dates

(dt)

Source from the content-addressed store, hash-verified

3524registerDateHandler(_parse_date_rfc822)
3525
3526def _parse_date_asctime(dt):
3527 """Parse asctime-style dates"""
3528 dayname, month, day, remainder = dt.split(None, 3)
3529 # Convert month and day into zero-padded integers
3530 month = '%02i ' % (_rfc822_months.index(month.lower()) + 1)
3531 day = '%02i ' % (int(day),)
3532 dt = month + day + remainder
3533 return time.strptime(dt, '%m %d %H:%M:%S %Y')[:-1] + (0, )
3534registerDateHandler(_parse_date_asctime)
3535
3536def _parse_date_perforce(aDateString):

Callers

nothing calls this directly

Calls 2

splitMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…