[tz] How to compute the moment of the next DST change
Paul Eggert
eggert at cs.ucla.edu
Thu Apr 4 19:46:23 UTC 2013
It was pointed out to me privately that my Elisp code does not work
if the current time zone is plain UTC or is any other time zone where
no clock changes are planned for the future. Here's
a slightly-fancier version that should fix this:
emacs -batch -l cal-dst -eval '
(message "%s" (let ((nt (calendar-next-time-zone-transition (current-time))))
(and nt
(format-time-string "%Y-%m-%d %T %z" nt))))
'
More information about the tz
mailing list