? Is that a reasonable thing to want? I might be reaching for the wrong thing right now.
kevin.cianfarini
07/25/2023, 1:49 AM
Some context: I'm trying to implement a scheduler like thing that can execute a certain task at the beginning of a (second|minute|hour|day|week|months|year) in a given time zone.
My approach to this is
delay
based, so I need to work out the amount of time between
now
and the beginning of a day, week, month, quarter, etc.
kevin.cianfarini
07/25/2023, 1:55 AM
Some example schedules might be
1. Execute a task at the beginning of every (second, minute, hour)
2. Execute a task every 12 hours aligned to midnight and noon in a given time zone
3. Execute a task every calendar day at midnight in a specific time zone