From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: adriano Newsgroups: gmane.lisp.guile.user Subject: Re: timestamp Date: Sat, 12 Feb 2022 10:49:28 +0100 Message-ID: References: <5cae853e6252bb3e38b1a20ff9ea960c1756c68c.camel@riseup.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30143"; mail-complaints-to="usenet@ciao.gmane.io" To: tomas@tuxteam.de, guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Feb 12 10:58:19 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 1nIpAY-0007cJ-Ic for guile-user@m.gmane-mx.org; Sat, 12 Feb 2022 10:58:18 +0100 Original-Received: from localhost ([::1]:57206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nIpAX-0008Dw-5C for guile-user@m.gmane-mx.org; Sat, 12 Feb 2022 04:58:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIp28-00047g-Cj for guile-user@gnu.org; Sat, 12 Feb 2022 04:49:36 -0500 Original-Received: from mx1.riseup.net ([198.252.153.129]:36202) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIp26-0004Q2-Co for guile-user@gnu.org; Sat, 12 Feb 2022 04:49:35 -0500 Original-Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4Jwm0s06ZFzF75K; Sat, 12 Feb 2022 01:49:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1644659373; bh=3BCd/m2Emc8iKx6hnmZJ+Y/ikIFvnJmY0/Q9vQxiWzc=; h=Subject:From:To:Date:In-Reply-To:References:From; b=ktRNHy0vjA+Ut/Pd9qZHhpjsWXNdWuVuJ97JIGKfX9sPbMRYJd3YeogUhbPrukNsM Ces/KmVg7EfTZsY245h5xAtFp5BN++KEOmyXavKoInoiC06pZTcpC7DPUgnoI9smGM aVntgjm9e/P/+QmwEuc2BXRs6q0QT95i/p9f1m5E= X-Riseup-User-ID: B24D25FEA8991B63A6007E425157B856A540DC55FD18FAC83F4619420CD0D528 Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4Jwm0q6v9Yz21n1; Sat, 12 Feb 2022 01:49:31 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=198.252.153.129; envelope-from=randomlooser@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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:18081 Archived-At: Il giorno sab, 12/02/2022 alle 10.01 +0100, tomas@tuxteam.de ha scritto: > On Sat, Feb 12, 2022 at 09:37:17AM +0100, adriano wrote: > > This > > > > scheme@(guile-user)> (stat:ctime (stat "cat.jpg")) > > $5 = 1607841890 > > > > How do I get a timedate from that number ($5) ? > > The traditional POSIX-ish functions are built in: > >   (localtime 1607841890) >   => #(50 44 7 13 11 120 0 347 0 -3600 "CET") > >   (strftime "%Y-%m-%d %H:%m:%s" (localtime 1607841890)) >   => "2020-12-13 07:12:1607845490" > > If you want to "go further", there is "SRFI-19 Time/Date > conversions". > > HTH yes, this helps Thank you, Tomas