diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-05-23 18:10:12 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-05-23 18:10:12 +0200 |
commit | b0e01d9549f389ef43190a966eee5d4615434188 (patch) | |
tree | 3f6750364296260eee3dd9d1c2dfafd3811d12a1 /module/srfi/srfi-19 | |
parent | Server add POST body parameters, and state forwarding. (diff) | |
download | calp-b0e01d9549f389ef43190a966eee5d4615434188.tar.gz calp-b0e01d9549f389ef43190a966eee5d4615434188.tar.xz |
Update server.
Diffstat (limited to '')
-rw-r--r-- | module/srfi/srfi-19/util.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/module/srfi/srfi-19/util.scm b/module/srfi/srfi-19/util.scm index 29f5450f..2e969f6e 100644 --- a/module/srfi/srfi-19/util.scm +++ b/module/srfi/srfi-19/util.scm @@ -11,7 +11,8 @@ ;; time-add make-duration time->string - add-day remove-day)) + add-day remove-day + date)) #; (define (copy-date date) @@ -129,3 +130,6 @@ attribute set to 0. Can also be seen as \"Start of day\"" ;; TODO actually allow many form date form. (define-public (parse-freeform-date str) (string->date str "~Y-~m-~d")) + +(define* (date #:key (year 0) (month 0) (day 0) (hour 0) (minute 0) (second 0) (nsecs 0) (zone 0)) + (make-date nsecs second minute hour day month year zone)) |