chrono/chrono/utils/date.py

3 lines
72 B
Python

def get_weekday_index(datetime):
return (datetime.day - 1) // 7 + 1