mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
* lisp/calc/calc-forms.el (math-date-to-iso-dt): Fix weekday number.
This commit is contained in:
parent
c5bc2d1d05
commit
77a7493589
2 changed files with 6 additions and 1 deletions
|
|
@ -474,7 +474,8 @@ in the Gregorian calendar and the remaining part determines the time."
|
|||
(math-sub date (math-absolute-from-iso-dt year 1 1))
|
||||
7))
|
||||
1)
|
||||
(cdr (math-idivmod date 7)))))
|
||||
(let ((day (calcFunc-mod date 7)))
|
||||
(if (= day 0) 7 day)))))
|
||||
|
||||
(defun math-dt-to-date (dt)
|
||||
(or (integerp (nth 1 dt))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue