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