From: sirgazil <sirgazil@zoho.com>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: Guile User <guile-user@gnu.org>
Subject: Re: How do you format date-times in RFC 3339 style?
Date: Tue, 12 Feb 2019 13:15:41 -0500 [thread overview]
Message-ID: <befa563a-75d4-c524-8c51-193c84a82e56@zoho.com> (raw)
In-Reply-To: <875ztpj6if.fsf@elephly.net>
El 12/02/19 a las 11:50 a. m., Ricardo Wurmus escribió:
>
> 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?
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/
next prev parent reply other threads:[~2019-02-12 18:15 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
2019-02-12 18:15 ` sirgazil [this message]
-- 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=befa563a-75d4-c524-8c51-193c84a82e56@zoho.com \
--to=sirgazil@zoho.com \
--cc=guile-user@gnu.org \
--cc=rekado@elephly.net \
/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).