| 286 | # "Anno Domini", "Year of Our Lord"] |
| 287 | |
| 288 | def __init__(self, dayfirst=False, yearfirst=False): |
| 289 | self._jump = self._convert(self.JUMP) |
| 290 | self._weekdays = self._convert(self.WEEKDAYS) |
| 291 | self._months = self._convert(self.MONTHS) |
| 292 | self._hms = self._convert(self.HMS) |
| 293 | self._ampm = self._convert(self.AMPM) |
| 294 | self._utczone = self._convert(self.UTCZONE) |
| 295 | self._pertain = self._convert(self.PERTAIN) |
| 296 | |
| 297 | self.dayfirst = dayfirst |
| 298 | self.yearfirst = yearfirst |
| 299 | |
| 300 | self._year = time.localtime().tm_year |
| 301 | self._century = self._year // 100 * 100 |
| 302 | |
| 303 | def _convert(self, lst): |
| 304 | dct = {} |