aboutsummaryrefslogtreecommitdiff
path: root/module
diff options
context:
space:
mode:
Diffstat (limited to 'module')
-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)))