diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-05-19 23:12:58 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-05-19 23:21:57 +0200 |
commit | 817df7c331dd13b71add17dd295a07e66fa4b28d (patch) | |
tree | bdab512dbb1d2d236d5be1c1d2dab35f8a928138 /module/datetime | |
parent | Add test for filter-sorted. (diff) | |
download | calp-817df7c331dd13b71add17dd295a07e66fa4b28d.tar.gz calp-817df7c331dd13b71add17dd295a07e66fa4b28d.tar.xz |
Cleanup in datetime.
Diffstat (limited to 'module/datetime')
-rw-r--r-- | module/datetime/util.scm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/datetime/util.scm b/module/datetime/util.scm index ad0944f3..83d93e7f 100644 --- a/module/datetime/util.scm +++ b/module/datetime/util.scm @@ -171,6 +171,7 @@ ((#\M) (format #t "~2'0d" (minute time))) ((#\S) (format #t "~2'0d" (second time))) ;; TODO + ;; +02:00, get from zoneinfo database ;; ((#\z) (when (utc? time) (display "Z"))) ((#\Y) (format #t "~4'0d" (year date))) ((#\m) (format #t "~2'0d" (month date))) @@ -314,7 +315,8 @@ (* 12 (year diff))) (month-stream start-date))))))) -;; also known as Julian day. +;; Day from start of the year, so 1 feb would be day 32. +;; Also known as Julian day. (define-public (year-day date) (days-in-interval (start-of-year date) date)) |