diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-08-04 13:35:52 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-08-04 13:35:52 +0200 |
commit | 89a657ed98e70efaeef566b0876b406bbcdb2255 (patch) | |
tree | 1baf2693f2eacdbc3a797746252a41c47f3b38e3 /module/datetime.scm | |
parent | Add more to make install. (diff) | |
download | calp-89a657ed98e70efaeef566b0876b406bbcdb2255.tar.gz calp-89a657ed98e70efaeef566b0876b406bbcdb2255.tar.xz |
Start work on long event layout for months.
Diffstat (limited to '')
-rw-r--r-- | module/datetime.scm | 4 |
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 |