Function: calendar-absolute-from-time
calendar-absolute-from-time is a byte-compiled function defined in
cal-dst.el.gz.
Signature
(calendar-absolute-from-time X UTC-DIFF)
Documentation
Absolute local date of time X; local time is UTC-DIFF seconds from UTC.
X is the number of seconds since 1970-01-01 00:00:00 UTC, ignoring leap seconds.
Returns the pair (ABS-DATE . SECONDS) where SECONDS after local midnight on absolute date ABS-DATE is the equivalent moment to X.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/cal-dst.el.gz
(defun calendar-absolute-from-time (x utc-diff)
"Absolute local date of time X; local time is UTC-DIFF seconds from UTC.
X is the number of seconds since 1970-01-01 00:00:00 UTC,
ignoring leap seconds.
Returns the pair (ABS-DATE . SECONDS) where SECONDS after local midnight on
absolute date ABS-DATE is the equivalent moment to X."
(let ((secsperday 86400)
(local (+ x utc-diff)))
(cons (+ calendar-system-time-basis (floor local secsperday))
(mod local secsperday))))