From: "Dmitry V. Levin" <ldv@altlinux.org>
To: util-linux@vger.kernel.org
Subject: Re: [PATCH] lib/timeutils: Add %s (seconds since the Epoch) to parse_timestamp()
Date: Wed, 7 Sep 2022 15:57:37 +0300 [thread overview]
Message-ID: <20220907125736.GA17101@altlinux.org> (raw)
In-Reply-To: <20220907072048.5buz33o2df5cvdiw@ws.net.home>
On Wed, Sep 07, 2022 at 09:20:48AM +0200, Karel Zak wrote:
> On Tue, Sep 06, 2022 at 07:31:07PM +0300, Péter Ujfalusi wrote:
> > On 06/09/2022 11:47, Karel Zak wrote:
> > > On Tue, Sep 06, 2022 at 10:04:36AM +0300, Peter Ujfalusi wrote:
> > >> lib/timeutils.c | 8 ++++++++
> > >> 1 file changed, 8 insertions(+)
> > >
> > > Applied, thanks.
> >
> > After some tinkering with a script where I needed this, would it make
> > sense to change the way how one should be specifying seconds since the
> > Epoch time to
> > '@'<number>
>
> Yes, '@' seems more readable. I have no strong opinion about it, maybe
> we can support both convention (with and without @).
I suggest supporting just @seconds, this would also match the behaviour of
date(1) and the gnulib module it uses:
$ date -u -d @1348331662
Sat Sep 22 16:34:22 UTC 2012
--
ldv
next prev parent reply other threads:[~2022-09-07 13:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-06 7:04 [PATCH] lib/timeutils: Add %s (seconds since the Epoch) to parse_timestamp() Peter Ujfalusi
2022-09-06 8:47 ` Karel Zak
2022-09-06 16:31 ` Péter Ujfalusi
2022-09-07 7:20 ` Karel Zak
2022-09-07 12:57 ` Dmitry V. Levin [this message]
2022-09-08 9:29 ` Péter Ujfalusi
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220907125736.GA17101@altlinux.org \
--to=ldv@altlinux.org \
--cc=util-linux@vger.kernel.org \
/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