aboutsummaryrefslogtreecommitdiff
path: root/module/datetime.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-08-04 13:35:52 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-08-04 13:35:52 +0200
commit89a657ed98e70efaeef566b0876b406bbcdb2255 (patch)
tree1baf2693f2eacdbc3a797746252a41c47f3b38e3 /module/datetime.scm
parentAdd more to make install. (diff)
downloadcalp-89a657ed98e70efaeef566b0876b406bbcdb2255.tar.gz
calp-89a657ed98e70efaeef566b0876b406bbcdb2255.tar.xz
Start work on long event layout for months.
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