What happens to at jobs across the DST switch?

Olivier Olivier.Nicole at cs.ait.ac.th
Sat Mar 27 11:06:36 UTC 2021


Hi,

> If I today create jobs to run tomorrow at for example the following times, what
> happens?
> i.e they are set up before the switch (today) but shall run after the switch
> (tomorrow):
>
> at 00:59
> at 01:59
> at 02:59
> at 03:59
> at 04:59
>
> etc
>
> When they are set up I wonder if at is clever enough to know which time the
> clock changes 1 hour and compensates for it so it will actually run at the
> expected time or do the jobs set up for after the DST change run 1 hour off?
>
> I have a complex at job creation script which has to know the time difference to
> the USA from Europe. It is currently 5 hours CET to Eastern DST in US because US
> switches 2 weeks ahead of us.
> Tomorrow after 02:00 CET the time difference will be 6 hours because Europe
> switches.
>
> So I wonder what happens to jobs set up before the switch but should execute
> after?

Something worth trying: in your script, set the LOCALE to the time of
the place you are downloading from, if you are lucky, at(1) should
pick up the right time overthere, whatever is the time difference,
whatever DST exists there.

I am doing something like that in Perl to download some radio program
from France (DST) to Thailand (no DST).

Good luck,

Olivier


>
> -- 
> Bo Berglund
> Developer in Sweden

-- 




More information about the ubuntu-users mailing list