diff options
Diffstat (limited to 'module/datetime.scm')
-rw-r--r-- | module/datetime.scm | 3 |
1 files changed, 3 insertions, 0 deletions
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 |