El 12/02/19 a las 11:50 a. m., Ricardo Wurmus escribió:
sirgazil <sirga...@zoho.com> writes:
El 11/02/19 a las 4:39 p. m., Nala Ginrut escribió:
Hi there!
Guile web module has provided an unexpected API for that:
(define write-date (@@ (web http) write-date))
I think I prefer using public procedures, so I'll leave the error
there for now.
I suppose you could hack your way around this:
(use-modules (srfi srfi-19))
(let* ((now (current-date))
(tz (date->string now "~z")))
(string-append (date->string now "~Y-~m-~dT~H:~M.~S")
(string-drop-right tz 2) ":" (string-take-right tz 2)))
What do you think?
Well, I was trying to avoid that hoping to find an obscure RFC 3339
module or something first... But thanks, Ricardo :)
--
Luis Felipe López Acevedo
http://sirgazil.bitbucket.io/