Function: calendar-mayan-date-string

calendar-mayan-date-string is an autoloaded and byte-compiled function defined in cal-mayan.el.gz.

Signature

(calendar-mayan-date-string &optional DATE)

Documentation

String of Mayan date of Gregorian DATE; default today.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/cal-mayan.el.gz
;;;###cal-autoload
(defun calendar-mayan-date-string (&optional date)
  "String of Mayan date of Gregorian DATE; default today."
  (let* ((d (calendar-absolute-from-gregorian
             (or date (calendar-current-date))))
         (tzolkin (calendar-mayan-tzolkin-from-absolute d))
         (haab (calendar-mayan-haab-from-absolute d))
         (long-count (calendar-mayan-long-count-from-absolute d)))
    (format "Long count = %s; tzolkin = %s; haab = %s"
            (calendar-mayan-long-count-to-string long-count)
            (calendar-mayan-tzolkin-to-string tzolkin)
            (calendar-mayan-haab-to-string haab))))