diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-04-21 19:04:53 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-04-22 18:24:14 +0200 |
commit | 51e54c2ec9e013817646d7dda6635c12a14fdf5f (patch) | |
tree | 6d2bed479562ab67c02956c5e207d8d3141cb16b | |
parent | Add iterate procedure. (diff) | |
download | calp-51e54c2ec9e013817646d7dda6635c12a14fdf5f.tar.gz calp-51e54c2ec9e013817646d7dda6635c12a14fdf5f.tar.xz |
Add time-zero?
Diffstat (limited to '')
-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 |