diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-01-14 00:14:35 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-01-14 00:14:35 +0100 |
commit | 42865cb25d714ad338bfdd0d8a17b8cf04783092 (patch) | |
tree | e4463b3e42ee31079e157bdff924113e569d18d4 /module/vcomponent/datetime.scm | |
parent | Add horrendous / -> /today redirect. (diff) | |
download | calp-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.scm | 7 |
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)) |