diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-04-26 02:19:34 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-04-26 02:19:34 +0200 |
commit | abace1311042214b5a73b06c04dc6adb4787d9ed (patch) | |
tree | d879cadb653a80a42a5b07f84510fd67c8ae1dd4 /module/output/html.scm | |
parent | Remove days-between in favour of days-in-interval. (diff) | |
download | calp-abace1311042214b5a73b06c04dc6adb4787d9ed.tar.gz calp-abace1311042214b5a73b06c04dc6adb4787d9ed.tar.xz |
Move date-range to datetime/util.
Diffstat (limited to 'module/output/html.scm')
-rw-r--r-- | module/output/html.scm | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/module/output/html.scm b/module/output/html.scm index 307c0236..2b8f52a9 100644 --- a/module/output/html.scm +++ b/module/output/html.scm @@ -319,11 +319,6 @@ (lambda (e) (not (date< end-date (as-date (attr e 'DTSTART))))) events))) -;; date, date → [list date] -(define (date-range start end) - (stream->list - (stream-take-while (lambda (d) (date<= d end)) - (day-stream start)))) (define*-public (render-calendar key: events start-date end-date #:allow-other-keys) (let* ((long-events short-events (partition long-event? (stream->list (events-between start-date end-date events)))) |