def _parse_date_hungarian(dateString):
 m = _hungarian_date_format_re.match(dateString)
 if (not m):
  return
 try:
  month = _hungarian_months[m.group(2)]
  day = m.group(3)
  if (len(day) == 1):
   day = ('0' + day)
  hour = m.group(4)
  if (len(hour) == 1):
   hour = ('0' + hour)
 except:
  return
 w3dtfdate = ('%(year)s-%(month)s-%(day)sT%(hour)s:%(minute)s%(zonediff)s' % {'year': m.group(1), 'month': month, 'day': day, 'hour': hour, 'minute': m.group(5), 'zonediff': m.group(6)})
 if _debug:
  sys.stderr.write(('Hungarian date parsed as: %s\n' % w3dtfdate))
 return _parse_date_w3dtf(w3dtfdate)

def _parse_date_hungarian ( dateString ) : m = _hungarian_date_format_re . match ( dateString ) if ( not m ) : return try : month = _hungarian_months [ m . group ( 2 ) ] day = m . group ( 3 ) if ( len ( day ) == 1 ) : day = ( '0' + day ) hour = m . group ( 4 ) if ( len ( hour ) == 1 ) : hour = ( '0' + hour ) except : return w3dtfdate = ( '%(year)s-%(month)s-%(day)sT%(hour)s:%(minute)s%(zonediff)s' % { 'year' : m . group ( 1 ) , 'month' : month , 'day' : day , 'hour' : hour , 'minute' : m . group ( 5 ) , 'zonediff' : m . group ( 6 ) } ) if _debug : sys . stderr . write ( ( 'Hungarian date parsed as: %s\n' % w3dtfdate ) ) return _parse_date_w3dtf ( w3dtfdate )
parse a string according to a hungarian 8-bit date format .