From: adriano <randomlooser@riseup.net>
To: tomas@tuxteam.de, guile-user@gnu.org
Subject: Re: timestamp
Date: Sat, 12 Feb 2022 10:49:28 +0100 [thread overview]
Message-ID: <bcb592dccd29eed432f7f8f22bfdd8e6d0cb896f.camel@riseup.net> (raw)
In-Reply-To: <Ygd3ZfYZ3dWpFbwV@tuxteam.de>
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
next prev parent reply other threads:[~2022-02-12 9:49 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-12 8:37 timestamp adriano
2022-02-12 8:52 ` timestamp Vivien
2022-02-12 9:43 ` timestamp adriano
2022-02-12 11:49 ` timestamp Ricardo Wurmus
2022-02-12 12:32 ` timestamp tomas
2022-02-12 12:38 ` timestamp Eli Zaretskii
2022-02-12 13:30 ` timestamp adriano
2022-02-12 13:42 ` timestamp adriano
2022-02-12 13:49 ` timestamp Ricardo Wurmus
2022-02-12 13:55 ` timestamp adriano
2022-02-12 14:01 ` Guile cookbook ? adriano
2022-02-12 14:15 ` Ricardo Wurmus
2022-02-12 15:01 ` adriano
2022-02-12 15:30 ` Olivier Dion via General Guile related discussions
2022-02-12 17:11 ` Zelphir Kaltstahl
2022-02-12 17:32 ` timestamp Eli Zaretskii
2022-02-12 17:48 ` Examples in Guile documentation Zelphir Kaltstahl
2022-02-12 9:01 ` timestamp tomas
2022-02-12 9:49 ` adriano [this message]
2022-02-12 12:50 ` timestamp Eli Zaretskii
2022-02-12 13:01 ` timestamp tomas
2022-02-12 15:23 ` timestamp adriano
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=bcb592dccd29eed432f7f8f22bfdd8e6d0cb896f.camel@riseup.net \
--to=randomlooser@riseup.net \
--cc=guile-user@gnu.org \
--cc=tomas@tuxteam.de \
/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).