Determines if the instance is a long year See link `https://en.wikipedia.org/wiki/ISO_8601#Week_dates`_
(self)
| 521 | return self < self.now(self.timezone) |
| 522 | |
| 523 | def is_long_year(self) -> bool: |
| 524 | """ |
| 525 | Determines if the instance is a long year |
| 526 | |
| 527 | See link `https://en.wikipedia.org/wiki/ISO_8601#Week_dates`_ |
| 528 | """ |
| 529 | return ( |
| 530 | DateTime.create(self.year, 12, 28, 0, 0, 0, tz=self.tz).isocalendar()[1] |
| 531 | == 53 |
| 532 | ) |
| 533 | |
| 534 | def is_same_day(self, dt: datetime.datetime) -> bool: # type: ignore[override] |
| 535 | """ |