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

Paul_Koning at Dell.com Paul_Koning at Dell.com
Tue Apr 2 15:17:34 UTC 2013

This sounds like something that should be in the Python standard library "datetime" module -- but I don't believe it is.  Maybe a good project for an enterprising programmer.


On Apr 2, 2013, at 4:58 AM, Simon Perreault wrote:

> 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?
> Thanks,
> Simon

More information about the tz mailing list