Function: timezone-day-number

timezone-day-number is a byte-compiled function defined in timezone.el.gz.

Signature

(timezone-day-number MONTH DAY YEAR)

Documentation

Return the day number within the year of the date month/day/year.

Source Code

;; Defined in /usr/src/emacs/lisp/timezone.el.gz
(defun timezone-day-number (month day year)
  "Return the day number within the year of the date month/day/year."
  (let ((day-of-year (+ day (* 31 (1- month)))))
    (if (> month 2)
	(progn
	  (setq day-of-year (- day-of-year (/ (+ 23 (* 4 month)) 10)))
	  (if (timezone-leap-year-p year)
	      (setq day-of-year (1+ day-of-year)))))
    day-of-year))