From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ricardo Wurmus Newsgroups: gmane.lisp.guile.user Subject: Re: How do you format date-times in RFC 3339 style? Date: Tue, 12 Feb 2019 17:50:16 +0100 Message-ID: <875ztpj6if.fsf@elephly.net> References: <1177d8cd-e03c-a7f7-7a32-a5e27004acad@zoho.com> <5cafe77b-4e86-7790-68b7-7279a8c45852@zoho.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="188436"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.0; emacs 26.1 Cc: Guile User To: sirgazil Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Feb 12 19:38:28 2019 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtcwt-000mnj-8I for guile-user@m.gmane.org; Tue, 12 Feb 2019 19:38:27 +0100 Original-Received: from localhost ([127.0.0.1]:44151 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtcwm-0002zy-Jj for guile-user@m.gmane.org; Tue, 12 Feb 2019 13:38:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtcvU-0002kX-Ua for guile-user@gnu.org; Tue, 12 Feb 2019 13:37:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtcvT-0006Bb-W3 for guile-user@gnu.org; Tue, 12 Feb 2019 13:37:00 -0500 Original-Received: from sender-of-o51.zoho.com ([135.84.80.216]:21044) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gtcvS-0004rI-IN for guile-user@gnu.org; Tue, 12 Feb 2019 13:36:59 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1549990221; cv=none; d=zoho.com; s=zohoarc; b=caVWX40NDb0kdl90siVpm32bbO/3Bb+dEwj+Ui0SnYQSR/lNmYYJHclHruM48Oq3Uay4wRf0Nt7sftJDIKazRA4C5zF1iCmQqTshqzWX1bnDck8J+zsYmmbs4aL7gI6zuC52+DpE8o/m5vZIlQQcssNYR1cNfSYcYVyn1k86zTE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1549990221; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=/lOcFAjs/66+YX+h/WOnCsLIReQ7Dq8rrLb/D3UH4Rc=; b=g2D8/8N+r4Z4NoxnUsPJ+92WYKSXLoG+9uIoolG3fz8Ytm4Zu/BSQk+ABZqBPhjax31+5hgMdOOHO7E68PDwM+kby/zVQ97hN3AE4avUdSq4nQpXked6Eu/D1BI8I53CMra8X/Gl4PUjdsOiR2Nww4NniLRu93XPJc9h1SpTMJA= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1549990221; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; l=623; bh=/lOcFAjs/66+YX+h/WOnCsLIReQ7Dq8rrLb/D3UH4Rc=; b=FPei0+FLXZMQBg7XWo6KUPJA0eomV8umnvhGYuP9nUTAsgLqs1+z+wfK7H6Q6RBQ q1YUa9N7nWzAjA8RY0WOnb24VqILBmjXtCW7K779sfohlqLTh66mSetK90FjvFuhExx b9JDA5Go5+KOHM6qcGB1cvMnxsuebD7rdyV9ZOwY= Original-Received: from localhost (141.80.247.226 [141.80.247.226]) by mx.zohomail.com with SMTPS id 1549990220046644.1053872498973; Tue, 12 Feb 2019 08:50:20 -0800 (PST) In-reply-to: <5cafe77b-4e86-7790-68b7-7279a8c45852@zoho.com> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC X-ZohoMailClient: External X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 135.84.80.216 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:15314 Archived-At: sirgazil writes: > El 11/02/19 a las 4:39 p. m., Nala Ginrut escribi=C3=B3: >> 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? --=20 Ricardo