Skip to main content

Meeting 表產生時間

weekday2n_presenter: 星期幾:幾個人

start_date = datetime.datetime(2023, 2, 1)
end_date = datetime.datetime(2023, 8, 31)

# 0: Mon
# 1: Tue
# 2: Wed
# 3: Thu
# 4: Fri
# 5: Sat
# 6: Sun
weekday2n_presenter = {
3: 2
}

while start_date < end_date:
if weekday2n_presenter.get(start_date.weekday()):
for _ in range(weekday2n_presenter.get(start_date.weekday())):
print(start_date.strftime("%Y-%m-%d"))

start_date += datetime.timedelta(days=1)

assets/images/Pasted image 20230201130422.png

貼到 sheet 的 datebase