[tz] How to compute the moment of the next DST change
David Patte ₯
dpatte at relativedata.com
Tue Apr 2 11:38:00 UTC 2013
The tz file could be parsed itself as is being done in my free Windows
product Time Zone Master, and a cron file produced from that. A new file
would have to be generated after each release of the tz data files.
On 2013-04-02 4:58, 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