aboutsummaryrefslogtreecommitdiff
path: root/module/vcomponent/datetime.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2019-04-23 19:26:54 +0200
committerHugo Hörnquist <hugo@hornquist.se>2019-04-23 19:26:54 +0200
commit34da56150cbee6449faec22faabf6b2af3c84ed9 (patch)
treec263ef8ab6e77fb822db9bac8b7d78dd683f8750 /module/vcomponent/datetime.scm
parentAdd command line option parsing. (diff)
downloadcalp-34da56150cbee6449faec22faabf6b2af3c84ed9.tar.gz
calp-34da56150cbee6449faec22faabf6b2af3c84ed9.tar.xz
Move stuff from main.
Diffstat (limited to '')
-rw-r--r--module/vcomponent/datetime.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/module/vcomponent/datetime.scm b/module/vcomponent/datetime.scm
index 2270d10e..e427b088 100644
--- a/module/vcomponent/datetime.scm
+++ b/module/vcomponent/datetime.scm
@@ -56,3 +56,7 @@ Event must have the DTSTART and DTEND attribute set."
(time-difference
(time-min (add-day start-of-day) (attr e 'DTEND))
(time-max start-of-day (attr e 'DTSTART))))
+
+(define-public (ev-time<? a b)
+ (time<? (attr a 'DTSTART)
+ (attr b 'DTSTART)))