Skip to content

Commit

Permalink
correct leap-p: to use full year
Browse files Browse the repository at this point in the history
  • Loading branch information
lisp committed Nov 7, 2016
1 parent fea9524 commit 3bbee80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion date.lisp
Expand Up @@ -193,7 +193,7 @@
(subseq name 0 length)
name))

(defun date:leap-p (&optional (year (date:year-in-century)))
(defun date:leap-p (&optional (year (date:year)))
(and (zerop (mod year 4))
(or (not (zerop (mod year 100)))
(zerop (mod year 400)))))
Expand Down

0 comments on commit 3bbee80

Please sign in to comment.