Function: midnight-next

midnight-next is a byte-compiled function defined in midnight.el.gz.

Signature

(midnight-next)

Documentation

Return the number of whole or partial seconds till the next midnight.

Source Code

;; Defined in /usr/src/emacs/lisp/midnight.el.gz
(defun midnight-next ()
  "Return the number of whole or partial seconds till the next midnight."
  (pcase-let ((`(,sec ,min ,hrs) (decode-time nil nil 'integer)))
    (- (* 24 60 60) (* 60 60 hrs) (* 60 min) sec)))