diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-04-06 19:06:33 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-04-06 19:06:33 +0200 |
commit | c64d40a415aafb8c48286a10ed3502be802c7888 (patch) | |
tree | be19bb66662f2e7875c8a259ae6a8f4632522d93 /module/vcalendar | |
parent | Add temporary set-attributes! (diff) | |
download | calp-c64d40a415aafb8c48286a10ed3502be802c7888.tar.gz calp-c64d40a415aafb8c48286a10ed3502be802c7888.tar.xz |
Add ev-time<?.
Diffstat (limited to '')
-rw-r--r-- | module/vcalendar/datetime.scm | 3 |
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))) |