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

Function _parse_date_onblog

pattern/web/feed/feedparser.py:3226–3235  ·  view source on GitHub ↗

Parse a string according to the OnBlog 8-bit date format

(dateString)

Source from the content-addressed store, hash-verified

3224 re.compile(u'(\d{4})-(\d{2})-(\d{2})\s+(%s|%s)\s+(\d{,2}):(\d{,2}):(\d{,2})' % \
3225 (_korean_am, _korean_pm))
3226def _parse_date_onblog(dateString):
3227 '''Parse a string according to the OnBlog 8-bit date format'''
3228 m = _korean_onblog_date_re.match(dateString)
3229 if not m:
3230 return
3231 w3dtfdate = '%(year)s-%(month)s-%(day)sT%(hour)s:%(minute)s:%(second)s%(zonediff)s' % \
3232 {'year': m.group(1), 'month': m.group(2), 'day': m.group(3),\
3233 'hour': m.group(4), 'minute': m.group(5), 'second': m.group(6),\
3234 'zonediff': '+09:00'}
3235 return _parse_date_w3dtf(w3dtfdate)
3236registerDateHandler(_parse_date_onblog)
3237
3238def _parse_date_nate(dateString):

Callers

nothing calls this directly

Calls 3

_parse_date_w3dtfFunction · 0.85
matchMethod · 0.45
groupMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…