aboutsummaryrefslogtreecommitdiff
path: root/module/datetime.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-02-13 22:21:44 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-03-30 03:39:16 +0200
commit8d4e11b912e44a7ad135aa7695ab3a10d9d3a26e (patch)
tree0c4f1bcf944b3795ada9bc1c84137326f30be97b /module/datetime.scm
parentHandle XML entities slightly better in user-additions.js. (diff)
downloadcalp-8d4e11b912e44a7ad135aa7695ab3a10d9d3a26e.tar.gz
calp-8d4e11b912e44a7ad135aa7695ab3a10d9d3a26e.tar.xz
Remove parse-time from (datetime timespec).
Diffstat (limited to 'module/datetime.scm')
-rw-r--r--module/datetime.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/module/datetime.scm b/module/datetime.scm
index 8cffb755..18c965ff 100644
--- a/module/datetime.scm
+++ b/module/datetime.scm
@@ -675,6 +675,11 @@ Returns -1 on failure"
[else dt]))
(cond [(null? str)
+ ;; TODO should this be considered an error?
+ ;; Should it be toggleable through a flag.
+ ;; It's sometimes useful to allow it, since it allows optional
+ ;; trailing fields, but sometimes useful to disallow it, since
+ ;; it gives a better check that the data is valid
;; ((@ (hnh util exceptions) warning)
;; "Premature end of string, still got fmt = ~s"
;; fmt)