dbader / schedule

Python job scheduling for humans.
https://schedule.readthedocs.io/
MIT License
11.73k stars 959 forks source link

What timezone does the time refer to? #516

Closed MetzinAround closed 2 years ago

MetzinAround commented 2 years ago

I've searched the docs and can't seem to find the answer.

When using a time for a day, what is the time referencing if there's no way to specify a time zone? Is it UTC? PT? Knowing what the reference time is will help me know when to schedule my jobs to fire.

schedule.every().day.at("10:30").do(job) For instance, what is 10:30 referring to here?

SijmenHuizenga commented 2 years ago

Hi @MetzinAround, At the moment the schedule library uses naive datetime objects, representing current local date and time. So in .at("10:30") the 10:30 is local time. Hope this help!