Subject: Re: Executing jobs at DST start/end
To: None <firstname.lastname@example.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
Date: 04/18/2003 21:52:20
> change it to the more generic description
> "please run this job whenever local time shifts due to tz data"
> and you've got something. think "local sidereal time".
Heh. Run on local solar time and your job will be constantly running.
> keep in mind that you'll also have to keep local state in as atomic a
> fashion as possible, since you can't guarantee that the machine will
> be running when time shifts.
Which is another point: do you _want_ it to get run if the machine was
down when the UTC offset shifted? I can see arguments either way.
What if it's been down long enough that it's shifted back? What if
multiple shifts have occurred but it's now not what it was last run?
The devil is in the details.
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML email@example.com
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B