aboutsummaryrefslogtreecommitdiff
path: root/module
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-03-24 22:51:53 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2020-03-24 22:51:53 +0100
commit6ad54067348191be981161b9a3599147efe1e7d2 (patch)
tree2df00d69850e3e6256fb8c22308759f56c3b8d57 /module
parentChange overflow type for time-. (diff)
downloadcalp-6ad54067348191be981161b9a3599147efe1e7d2.tar.gz
calp-6ad54067348191be981161b9a3599147efe1e7d2.tar.xz
Add date-{min,max}.
Diffstat (limited to 'module')
-rw-r--r--module/datetime/util.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/module/datetime/util.scm b/module/datetime/util.scm
index d5558aa2..c8d199c9 100644
--- a/module/datetime/util.scm
+++ b/module/datetime/util.scm
@@ -33,6 +33,12 @@
(define-public (time-max a b)
(if (time<? a b) b a))
+(define-public (date-min a b)
+ (if (date< a b) a b))
+
+(define-public (date-max a b)
+ (if (date< a b) b a))
+
(define-public (datetime-min a b)
(if (datetime< a b) a b))