def onOffset(self, dt): if self.normalize and not _is_normalized(dt): return False return dt.day == 1