From 9ed3ef4423af3d2f9d01ef8b69f320cee55de3b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Pant=C5=AF=C4=8Dek?= Date: Sun, 21 May 2023 20:50:40 +0200 Subject: [PATCH] Convert all months to cal-months. --- src/cal-period.scm | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/cal-period.scm b/src/cal-period.scm index eb5dd7e..3fa1dd4 100644 --- a/src/cal-period.scm +++ b/src/cal-period.scm @@ -186,10 +186,12 @@ (define (cal-month-in-period? p . ml) (let ((m (if (null? ml) (*current-month*) - (car ml)))) - (and (or (not (cal-period-before p)) - (cal-monthmonth v stop?s))) + (if v + (if (cal-month? v) + v + (apply cal-day->month v stop?s)) + #f)) ;; Performs self-tests of the period module. (define (cal-period-tests!)