Function: icalendar-date/time-max
icalendar-date/time-max is a byte-compiled function defined in
icalendar-utils.el.gz.
Signature
(icalendar-date/time-max &rest DTS)
Documentation
Return the latest date or date-time among DTS.
The DTS may be any icalendar-date or icalendar-date-time values, and
will be ordered by icalendar-date/time<=.
Other relevant functions are documented in the icalendar group.
Shortdoc
;; icalendar
(icalendar-date/time-max '(12 15 2024) '(11 15 2024) '(12 1 2024))
=> (12 15 2024)
(icalendar-date/time-max '(0 0 8 11 12 2024 3 nil 3600)
'(0 0 9 11 12 2024 3 nil 3600)
'(0 0 10 11 12 2024 3 nil 3600))
=> (0 0 10 11 12 2024 3 nil 3600)
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/icalendar-utils.el.gz
(defun ical:date/time-max (&rest dts)
"Return the latest date or date-time among DTS.
The DTS may be any `icalendar-date' or `icalendar-date-time' values, and
will be ordered by `icalendar-date/time<='."
(car (sort dts :reverse t :lessp #'ical:date/time<=)))