Open GoogleCodeExporter opened 8 years ago
I looked at the source code for PDT and it seems like only three-letter-long
abbreviated month names are handled.
Is there any way to add more month names (possibly nested lists to group the
different possible names for each month into one)?
Original comment by i.nnikishi
on 25 Feb 2012 at 12:20
yep, short months are handled by the locale class and are normally only 3
character months - to add other strings you would need to change line 1720 of
parsedatetime/__init__.py
self.locale.re_values['shortmonths'] = '%s|%s|%s|%s|%s|%s|%s|%s|%s|%s|%s|%s' % smth
so that the list that is assigned has more months and then adjust the %s|
pattern to hold the extra
Original comment by bear42
on 25 Feb 2012 at 4:16
Original issue reported on code.google.com by
i.nnikishi
on 24 Feb 2012 at 11:58