diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-03-24 22:51:53 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-03-24 22:51:53 +0100 |
commit | 6ad54067348191be981161b9a3599147efe1e7d2 (patch) | |
tree | 2df00d69850e3e6256fb8c22308759f56c3b8d57 /module | |
parent | Change overflow type for time-. (diff) | |
download | calp-6ad54067348191be981161b9a3599147efe1e7d2.tar.gz calp-6ad54067348191be981161b9a3599147efe1e7d2.tar.xz |
Add date-{min,max}.
Diffstat (limited to 'module')
-rw-r--r-- | module/datetime/util.scm | 6 |
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)) |