aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-04-06 19:06:33 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2019-04-06 19:06:33 +0200
commitc64d40a415aafb8c48286a10ed3502be802c7888 (patch)
treebe19bb66662f2e7875c8a259ae6a8f4632522d93
parentAdd temporary set-attributes! (diff)
downloadcalp-c64d40a415aafb8c48286a10ed3502be802c7888.tar.gz
calp-c64d40a415aafb8c48286a10ed3502be802c7888.tar.xz
Add ev-time<?.
-rw-r--r--module/vcalendar/datetime.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/module/vcalendar/datetime.scm b/module/vcalendar/datetime.scm
index d28096c6..f6df03d5 100644
--- a/module/vcalendar/datetime.scm
+++ b/module/vcalendar/datetime.scm
@@ -33,3 +33,6 @@ Event must have the DTSTART and DTEND attribute set."
(end (add-day start)))
(event-overlaps? ev start end)))
+(define-public (ev-time<? a b)
+ (time<? (attr a 'DTSTART)
+ (attr b 'DTSTART)))