def week_end(d):
    d = d + timedelta(7 - d.isoweekday())
    return datetime(d.year, d.month, d.day, 23, 59, 59)
Weeks start on the Sunday on or after the given date
dataset/ETHPy150Open mozilla/standup/standup/apps/status/helpers.py/week_end