Parse a string according to a Greek 8-bit date format.
(dateString)
| 3293 | re.compile(u'([^,]+),\s+(\d{2})\s+([^\s]+)\s+(\d{4})\s+(\d{2}):(\d{2}):(\d{2})\s+([^\s]+)') |
| 3294 | |
| 3295 | def _parse_date_greek(dateString): |
| 3296 | '''Parse a string according to a Greek 8-bit date format.''' |
| 3297 | m = _greek_date_format_re.match(dateString) |
| 3298 | if not m: |
| 3299 | return |
| 3300 | wday = _greek_wdays[m.group(1)] |
| 3301 | month = _greek_months[m.group(3)] |
| 3302 | rfc822date = '%(wday)s, %(day)s %(month)s %(year)s %(hour)s:%(minute)s:%(second)s %(zonediff)s' % \ |
| 3303 | {'wday': wday, 'day': m.group(2), 'month': month, 'year': m.group(4),\ |
| 3304 | 'hour': m.group(5), 'minute': m.group(6), 'second': m.group(7),\ |
| 3305 | 'zonediff': m.group(8)} |
| 3306 | return _parse_date_rfc822(rfc822date) |
| 3307 | registerDateHandler(_parse_date_greek) |
| 3308 | |
| 3309 | # Unicode strings for Hungarian date strings |
nothing calls this directly
no test coverage detected
searching dependent graphs…