From: Ricardo Wurmus <rekado@elephly.net>
To: sirgazil <sirgazil@zoho.com>
Cc: Guile User <guile-user@gnu.org>
Subject: Re: How do you format date-times in RFC 3339 style?
Date: Tue, 12 Feb 2019 17:50:16 +0100 [thread overview]
Message-ID: <875ztpj6if.fsf@elephly.net> (raw)
In-Reply-To: <5cafe77b-4e86-7790-68b7-7279a8c45852@zoho.com>
sirgazil <sirgazil@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?
--
Ricardo
next prev parent reply other threads:[~2019-02-12 16:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-11 19:02 How do you format date-times in RFC 3339 style? sirgazil
2019-02-11 21:39 ` Nala Ginrut
2019-02-11 21:40 ` Nala Ginrut
2019-02-12 14:33 ` sirgazil
2019-02-12 16:18 ` Nala Ginrut
2019-02-12 17:33 ` sirgazil
2019-02-12 16:50 ` Ricardo Wurmus [this message]
2019-02-12 18:15 ` sirgazil
-- strict thread matches above, loose matches on Subject: below --
2019-02-12 18:29 tantalum
2019-02-12 18:33 tantalum
2019-02-13 14:21 ` sirgazil
2019-02-14 19:26 ` tantalum
2019-02-14 21:13 ` Ricardo Wurmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875ztpj6if.fsf@elephly.net \
--to=rekado@elephly.net \
--cc=guile-user@gnu.org \
--cc=sirgazil@zoho.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).