aboutsummaryrefslogtreecommitdiff
path: root/module/srfi
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2019-12-29 01:06:24 +0100
committerHugo Hörnquist <hugo@hornquist.se>2019-12-29 01:06:24 +0100
commit5c4b8125ed37d9a883fdb4aa4bf88e962b6da8ea (patch)
tree3591faf0f42638bbf067ce69b7043553a23856b7 /module/srfi
parentHandle X-HNH-ALTERNATIVES in ics output. (diff)
downloadcalp-5c4b8125ed37d9a883fdb4aa4bf88e962b6da8ea.tar.gz
calp-5c4b8125ed37d9a883fdb4aa4bf88e962b6da8ea.tar.xz
HTML day highlight now only in current month.
Diffstat (limited to 'module/srfi')
-rw-r--r--module/srfi/srfi-19/util.scm13
1 files changed, 13 insertions, 0 deletions
diff --git a/module/srfi/srfi-19/util.scm b/module/srfi/srfi-19/util.scm
index 09900bf2..e34b9339 100644
--- a/module/srfi/srfi-19/util.scm
+++ b/module/srfi/srfi-19/util.scm
@@ -166,3 +166,16 @@ attribute set to 0. Can also be seen as \"Start of day\""
(define* (date #:key (year 0) (month 0) (day 0) (hour 0) (minute 0) (second 0) (nsecs 0) (zone 0))
(make-date nsecs second minute hour day month year zone))
+
+
+(define-public (date=? a b)
+
+ (and (= (year a) (year b))
+ (= (month a) (month b))
+ (= (day a) (day b))
+ ;; (= (hour a) (hour b))
+ ;; (= (minute a) (minute b))
+ ;; (= (second a) (second b))
+ )
+ ;; ( (nsecs b) (zone b))
+ )