aboutsummaryrefslogtreecommitdiff
path: root/module/datetime.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/datetime.scm')
-rw-r--r--module/datetime.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/datetime.scm b/module/datetime.scm
index fdab2fe6..1141aa64 100644
--- a/module/datetime.scm
+++ b/module/datetime.scm
@@ -554,10 +554,10 @@
;; Returns a list of all dates from start to end.
;; both inclusive
;; date, date → [list date]
-(define-public (date-range start end)
+(define*-public (date-range start end optional: (increment (date day: 1)))
(stream->list
(stream-take-while (lambda (d) (date<= d end))
- (day-stream start))))
+ (date-stream increment start))))
;;; Output