Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/p/r/Products.PloneBooking-3.0.0a2/Products/PloneBooking/DateManager.py   Products.PloneBooking(Download)
        # Get first day of start year
        date_first_day = DateTime(start_year, 1, 1)
        day_minus = (date_first_day.dow() - 1) % 7
        day_plus = 0
        start_day = (start_week * 7) - 6 - day_minus
        # Get first day of end year
        date_first_day = DateTime(end_year, 1, 1)
        day_minus = (date_first_day.dow() - 1) % 7
        end_day = (end_week * 7) - day_minus + day_plus
        end_date = DateTime(end_year, end_day)

src/p/r/Products.RadioSchedule-1.0a/Products/RadioSchedule/contents/Week.py   Products.RadioSchedule(Download)
    def getStartingDate(self):
        dateofweek = self.getDateofweek()
        day = dateofweek.dow()
        dateofweek = dateofweek - day
        dateofweek = DateTime(dateofweek.strftime('%Y.%m.%d 00:00'))

src/p/r/Products.ECLecture-1.4/Products/ECLecture/content/ECLecture.py   Products.ECLecture(Download)
                result = True
            elif self.recurrence == WEEKLY:
                result = datetime.dow() == self.startDate.dow()
            elif self.recurrence == MONTHLY:
                # TODO