MCPcopy Index your code
hub / github.com/clips/pattern / _parse_date

Function _parse_date

pattern/web/feed/feedparser.py:3553–3567  ·  view source on GitHub ↗

Parses a variety of date formats into a 9-tuple in GMT

(dateString)

Source from the content-addressed store, hash-verified

3551registerDateHandler(_parse_date_perforce)
3552
3553def _parse_date(dateString):
3554 '''Parses a variety of date formats into a 9-tuple in GMT'''
3555 if not dateString:
3556 return None
3557 for handler in _date_handlers:
3558 try:
3559 date9tuple = handler(dateString)
3560 except (KeyError, OverflowError, ValueError):
3561 continue
3562 if not date9tuple:
3563 continue
3564 if len(date9tuple) != 9:
3565 continue
3566 return date9tuple
3567 return None
3568
3569def _getCharacterEncoding(http_headers, xml_data):
3570 '''Get the character encoding of the XML document

Callers 6

_end_publishedMethod · 0.85
_end_updatedMethod · 0.85
_end_createdMethod · 0.85
_end_expirationdateMethod · 0.85
_build_urllib2_requestFunction · 0.85
parseFunction · 0.85

Calls 1

lenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…