April 4, 2013
7:46 p.m.
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)))) '