[tz] How to compute the moment of the next DST change

Simon Perreault simon.perreault at viagenie.ca
Tue Apr 2 08:58:49 UTC 2013

Dear time experts,

I want to write a cron job or similar that activates one week prior to 
daylight saving time changes. (Or, more generically, one week prior to 
any time jumps, for any reason, DST or else.)

Any pointers?

I have looked at the usual places: POSIX time functions, various 
date/time modules on CPAN, etc. Nothing seems to do that computation. Do 
I need to parse the tz database myself?


More information about the tz mailing list