From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.lisp.guile.user Subject: Re: timestamp Date: Sat, 12 Feb 2022 10:01:25 +0100 Message-ID: References: <5cae853e6252bb3e38b1a20ff9ea960c1756c68c.camel@riseup.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3xKpHv9cQa8Z3o/N" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21839"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Feb 12 10:13:04 2022 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nIoSl-0005R3-U8 for guile-user@m.gmane-mx.org; Sat, 12 Feb 2022 10:13:03 +0100 Original-Received: from localhost ([::1]:56314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nIoSk-0003aa-Fl for guile-user@m.gmane-mx.org; Sat, 12 Feb 2022 04:13:02 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIoHe-0000MM-8N for guile-user@gnu.org; Sat, 12 Feb 2022 04:01:35 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:51994) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIoHb-00040G-Qf for guile-user@gnu.org; Sat, 12 Feb 2022 04:01:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=pGCxNo+iSiZwV7ivrSnNezPt8IAOsUXnccdC/f0+dA4=; b=o45YlddVsYSv+YwWNM2KH5E80c deqkAJUo5sQZtImsuYvkwVxeWUtEUQCp2yUZZg/4hanZGNZdtJ9UJjgQc9AOCRTjyhkoHy+0pXg+4 R9AIqJqdfiyUvEeA797ZWbb7Xl1JCt4EFnWXppCLBu/W9UeZCeLjAWYEusNvX3CKnMgwy+4wDKcCW rUYWTAgmn7B8hgjtjBWRk9TjYxObb1k2gvmRcLpwYbn2suSoPrZ6EAtIbE+SO/gIxofnayPAFFip7 SE+W8wjmcdVIH7ffhUgv9JK/vEJQMEBQSSLAEXIW3XTOqHZcykIScz+r2RkyrrthdgS/Uk86uIX4j +1NNW55A==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1nIoHV-0006gm-10 for guile-user@gnu.org; Sat, 12 Feb 2022 10:01:25 +0100 Content-Disposition: inline In-Reply-To: <5cae853e6252bb3e38b1a20ff9ea960c1756c68c.camel@riseup.net> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:18079 Archived-At: --3xKpHv9cQa8Z3o/N Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Feb 12, 2022 at 09:37:17AM +0100, adriano wrote: > This >=20 > scheme@(guile-user)> (stat:ctime (stat "cat.jpg")) > $5 =3D 1607841890 >=20 > How do I get a timedate from that number ($5) ? The traditional POSIX-ish functions are built in: (localtime 1607841890) =3D> #(50 44 7 13 11 120 0 347 0 -3600 "CET") (strftime "%Y-%m-%d %H:%m:%s" (localtime 1607841890)) =3D> "2020-12-13 07:12:1607845490" If you want to "go further", there is "SRFI-19 Time/Date conversions". HTH --=20 tom=C3=A1s --3xKpHv9cQa8Z3o/N Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCYgd3XwAKCRAFyCz1etHa RnaDAJ9okLqXylA/V7R1GLXE9Jh3ajtEBACfX+SBYmmXPYq7yQLmGx2oF1tmIoQ= =Ebod -----END PGP SIGNATURE----- --3xKpHv9cQa8Z3o/N--