Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

        def next_month(cal, date):
    year, month, day = date.timetuple()[:3]
    if month == 12:
        year += 1
        month = 1
    else:
        month += 1
    next_month_days = [d for d in cal.itermonthdays(year, month)]
    if day not in next_month_days:
        day = max(next_month_days)
    return datetime.datetime(year, month, day)
        


src/g/o/GooCalendar-0.1/goocalendar/_calendar.py   GooCalendar(Download)
    def next_page(self):
        cal = calendar.Calendar(self.firstweekday)
        if self.view == "month":
            new_date = util.next_month(cal, self.selected_date)
        elif self.view == "week":
            new_date = util.next_month(cal, self.selected_date)