The switch to daylight savings time
john.urban
urban at cbnewsl.att.com
Sat Apr 20 01:08:32 AEST 1991
In article <1991Apr17.151824.8236 at robobar.co.uk> ronald at robobar.co.uk (Ronald S H Khoo) writes:
>gwyn at smoke.brl.mil (Doug Gwyn) writes:
>
>> I don't know about your system, but genuine UNIX handles such mappings
>> as DST entirely in user mode,
>
>What do you recommend regarding things like cron?
>
> a) run it in GMT
> b) run it in local standard time, ignoring daylight.
> c) run it in local time, restarting cron twice a year
> d) teach cron to notice when someone's edited /etc/TIMEZONE
> e) any others?
>
>I opt for c) because uucp's crontab wants to run in the same timezone
>as British Telecom's charging algorithm (;-) I'm not sure about d).
>Any good arguments for or against any or none of the above?
>--
>Ronald Khoo <ronald at robobar.co.uk> +44 81 991 1142 (O) +44 71 229 7741 (H)
I vote for semi-d. Teach cron to notice when the change from Standard Time
to Daylight Time occurs (or visa versa) and adjust cron's internal time so that
jobs running at 23:45 (e.g. uucp's nightly jobs) continue to run at 23:45 and
not 00:45 or 22:45 after the switch. NOTE: things will straight out once
date XXX (where XXX is the current time) is run.
Sincerely,
John Ben Urban
More information about the Comp.unix.questions
mailing list