diff options
author | Hugo Hörnquist <hugo@hornquist.se> | 2019-04-23 19:26:54 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@hornquist.se> | 2019-04-23 19:26:54 +0200 |
commit | 34da56150cbee6449faec22faabf6b2af3c84ed9 (patch) | |
tree | c263ef8ab6e77fb822db9bac8b7d78dd683f8750 /module/vcomponent | |
parent | Add command line option parsing. (diff) | |
download | calp-34da56150cbee6449faec22faabf6b2af3c84ed9.tar.gz calp-34da56150cbee6449faec22faabf6b2af3c84ed9.tar.xz |
Move stuff from main.
Diffstat (limited to '')
-rw-r--r-- | module/vcomponent/datetime.scm | 4 |
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))) |