Function: calendar-hebrew-date-string

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

Signature

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

Documentation

String of Hebrew date before sunset of Gregorian DATE.

Defaults to today's date if DATE is not given. Driven by the variable calendar-date-display-form.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/cal-hebrew.el.gz
;;;###cal-autoload
(defun calendar-hebrew-date-string (&optional date)
  "String of Hebrew date before sunset of Gregorian DATE.
Defaults to today's date if DATE is not given.
Driven by the variable `calendar-date-display-form'."
  (let* ((hebrew-date (calendar-hebrew-from-absolute
                       (calendar-absolute-from-gregorian
                        (or date (calendar-current-date)))))
         (calendar-month-name-array
          (if (calendar-hebrew-leap-year-p (calendar-extract-year hebrew-date))
              calendar-hebrew-month-name-array-leap-year
            calendar-hebrew-month-name-array-common-year)))
    (calendar-date-string hebrew-date nil t)))