| 389 | |
| 390 | |
| 391 | class MonthEnd(BaseCFTimeOffset): |
| 392 | _freq = "ME" |
| 393 | |
| 394 | def __apply__(self, other): |
| 395 | n = _adjust_n_months(other.day, self.n, other.daysinmonth) |
| 396 | return _shift_month(other, n, "end") |
| 397 | |
| 398 | def onOffset(self, date) -> bool: |
| 399 | """Check if the given date is in the set of possible dates created |
| 400 | using a length-one version of this offset class.""" |
| 401 | return date.day == date.daysinmonth |
| 402 | |
| 403 | |
| 404 | _MONTH_ABBREVIATIONS = { |
no outgoing calls
searching dependent graphs…