aboutsummaryrefslogtreecommitdiff
path: root/module/vcomponent/datetime.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-01-14 00:14:35 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-01-14 00:14:35 +0100
commit42865cb25d714ad338bfdd0d8a17b8cf04783092 (patch)
treee4463b3e42ee31079e157bdff924113e569d18d4 /module/vcomponent/datetime.scm
parentAdd horrendous / -> /today redirect. (diff)
downloadcalp-42865cb25d714ad338bfdd0d8a17b8cf04783092.tar.gz
calp-42865cb25d714ad338bfdd0d8a17b8cf04783092.tar.xz
Add comments to some procedures.
Diffstat (limited to 'module/vcomponent/datetime.scm')
-rw-r--r--module/vcomponent/datetime.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/module/vcomponent/datetime.scm b/module/vcomponent/datetime.scm
index 887ae48b..ca4f90e9 100644
--- a/module/vcomponent/datetime.scm
+++ b/module/vcomponent/datetime.scm
@@ -68,6 +68,13 @@ Event must have the DTSTART and DTEND protperty set."
date-difference datetime-difference)
(prop e 'DTEND) (prop e 'DTSTART))))
+;;
+;; |-----| extent of event
+;; |-----| time we are interested in,
+;; defined through @var{start-date} and @var{end-date}
+;; |X| part of event within that time (X)
+;;
+;; Returns the length of the interval (X).
(define-public (event-length/clamped start-date end-date e)
(let ((end (or (prop e 'DTEND)
(if (date? (prop e 'DTSTART))