routing temp
This commit is contained in:
parent
f30115eecd
commit
5349088ba0
2 changed files with 29 additions and 0 deletions
9
code/utils.py
Normal file
9
code/utils.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
from datetime import datetime, timedelta, timezone
|
||||
def nextMonday():
|
||||
now = datetime.now(timezone.utc)
|
||||
days_until_monday = (0 - now.weekday() + 7) % 7
|
||||
monday = now + timedelta(days=days_until_monday)
|
||||
monday_9am = monday.replace(hour=9, minute=0, second=0, microsecond=0, tzinfo=timezone.utc)
|
||||
return monday_9am
|
||||
|
||||
print(nextMonday())
|
||||
Loading…
Add table
Add a link
Reference in a new issue