From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: sirgazil Newsgroups: gmane.lisp.guile.user Subject: Re: How do you format date-times in RFC 3339 style? Date: Tue, 12 Feb 2019 13:15:41 -0500 Message-ID: References: <1177d8cd-e03c-a7f7-7a32-a5e27004acad@zoho.com> <5cafe77b-4e86-7790-68b7-7279a8c45852@zoho.com> <875ztpj6if.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="91787"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 Cc: Guile User To: Ricardo Wurmus Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Feb 12 19:17:19 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 1gtccQ-000NlZ-GG for guile-user@m.gmane.org; Tue, 12 Feb 2019 19:17:18 +0100 Original-Received: from localhost ([127.0.0.1]:43762 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtccP-0002nd-9e for guile-user@m.gmane.org; Tue, 12 Feb 2019 13:17:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtcbN-0002ZT-UN for guile-user@gnu.org; Tue, 12 Feb 2019 13:16:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtcbM-000088-NF for guile-user@gnu.org; Tue, 12 Feb 2019 13:16:13 -0500 Original-Received: from sender-pp-091.zoho.com ([135.84.80.236]:25032) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gtcbH-00088z-9O for guile-user@gnu.org; Tue, 12 Feb 2019 13:16:08 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1549995344; cv=none; d=zoho.com; s=zohoarc; b=nUcoCChRZha4K0jum1PEmto/S2s9T1xTy4CBuRlEeAuUwb/TfiChPZbw3UKR7KSqP37Bvj98gD5cUMC5Exlv/SXFwurgFGlINxiY2uKvVNjjfZYPpPoW7ANdkWqRe8NErYiZGF6JIp72mawSyp/bO5Mlnh5qJ0ADUAVXj6i0dPU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1549995344; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=1W+FAf7nkPdErTJSnf5nkqvrIz7T25xEcL/bYtZqqk4=; b=OqYtPisl/el7z0Aj+HhsLLXNzX4SGdfi3NQXAWdNtQDRWmni/CMmxsV43i+Gs0bcAx42qH7i4XsoCKHVmZOia3jD+l8POtEuIFBFrZmc/H0qSEC+BsBc7EwJZIL589ost0va0OouvqCC4VS3RGwOuj9jnwurSOKoTjAcqUQfxCM= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=sirgazil@zoho.com; dmarc=pass header.from= header.from= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=subject:to:cc:references:from:message-id:date:user-agent:mime-version:in-reply-to:content-type; b=bDSFG3LCWkar2Bty1/7hd04/3NZdLnY/K3O7YYQtL6LCSWsQOx5C8+icZNAYvN7Spxh9/CuDTIyK sbBwWltk2PzwbvgaVW7WJQOrWtTfGEccdDTYtx0cbDkM36s7md2x DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1549995344; s=default; d=zoho.com; i=sirgazil@zoho.com; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; l=912; bh=1W+FAf7nkPdErTJSnf5nkqvrIz7T25xEcL/bYtZqqk4=; b=PrHlKunhRP+4CZOtTdeo0OV1+d6pKwZKLEfA9yulIYppbhOTKf1hUa1jx6QUSLiG 23N1gUM2uPdz/p04cPLoPSt+PnERq8rjeLAQkaZOLob/RTSbn79pKLWkCYi/F4c0SWG d6y0JLt9DTjWkROMKTyQtFdvpjqe2GsrPnUvLh4g= Original-Received: from [192.168.1.57] (181.130.25.222 [181.130.25.222]) by mx.zohomail.com with SMTPS id 1549995343361293.73377827632805; Tue, 12 Feb 2019 10:15:43 -0800 (PST) In-Reply-To: <875ztpj6if.fsf@elephly.net> Content-Language: en-US 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.236 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:15312 Archived-At: El 12/02/19 a las 11:50 a. m., Ricardo Wurmus escribi=C3=B3: >=20 > sirgazil writes: >=20 >> 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. >=20 > I suppose you could hack your way around this: >=20 > (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))) >=20 > What do you think? Well, I was trying to avoid that hoping to find an obscure RFC 3339=20 module or something first... But thanks, Ricardo :) --=20 Luis Felipe L=C3=B3pez Acevedo http://sirgazil.bitbucket.io/