aboutsummaryrefslogtreecommitdiff
path: root/module/datetime.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-05-14 17:45:03 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-05-14 17:45:03 +0200
commitcab4413d62d8228ba034b1610acf64e707a8338f (patch)
tree53f3acb0d078683d3578fe9e30916b5fc0927a37 /module/datetime.scm
parentRemove recurrence instances before our start date. (diff)
downloadcalp-cab4413d62d8228ba034b1610acf64e707a8338f.tar.gz
calp-cab4413d62d8228ba034b1610acf64e707a8338f.tar.xz
Add some TODO's.
Diffstat (limited to 'module/datetime.scm')
-rw-r--r--module/datetime.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/datetime.scm b/module/datetime.scm
index b2a3d38e..b8b515fc 100644
--- a/module/datetime.scm
+++ b/module/datetime.scm
@@ -686,13 +686,14 @@
time: (parse-ics-time timestr)
tz: tz)))
-
+;; TODO rewrite this
(define-public (current-date)
(let ((d ((@ (srfi srfi-19) current-date))))
(date year: ((@ (srfi srfi-19) date-year) d)
month: ((@ (srfi srfi-19) date-month) d)
day: ((@ (srfi srfi-19) date-day) d))))
+;; TODO this returns UTC time, but without a TZ component
(define-public (current-datetime)
(unix-time->datetime ((@ (guile) current-time))))