From 51e54c2ec9e013817646d7dda6635c12a14fdf5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 21 Apr 2020 19:04:53 +0200 Subject: Add time-zero? --- module/datetime.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/datetime.scm b/module/datetime.scm index d74023b9..7142bec5 100644 --- a/module/datetime.scm +++ b/module/datetime.scm @@ -345,6 +345,9 @@ (define-public (date-zero? date) (= 0 (year date) (month date) (day date))) +(define-public (time-zero? time) + (= 0 (hour time) (minute time) (second time))) + ;; TODO +1 month is weird for late days in a month. ;; is the last of january +1 month the last of february, ;; or a few days into march? It's at least not the 31 of -- cgit v1.2.3