This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Print SQL Queries in Jupyterlab | |
Connect Jupyter lab with Django Extensions Kernel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
from zoneinfo import ZoneInfo | |
from dateutil import tz | |
from dateutil.rrule import rrule, SA, SU, DAILY | |
start_date = datetime(2023, 3, 4, 2, 10, tzinfo=ZoneInfo("America/New_York")) | |
for dt in rrule(freq=DAILY, count=10, byweekday=[SA, SU], dtstart=start_date): | |
print(dt, tz.datetime_exists(dt)) | |
OlderNewer