GNU bug report logs - #71986
RFC: date @ to support ms.

Previous Next

Package: coreutils;

Reported by: Richard Neill <rn214 <at> cam.ac.uk>

Date: Mon, 8 Jul 2024 03:17:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 71986 <at> debbugs.gnu.org (full text, mbox):

From: Richard Neill <rn214 <at> cam.ac.uk>
To: Andreas Schwab <schwab <at> linux-m68k.org>, Richard Neill <rn214 <at> cam.ac.uk>
Cc: 71986 <at> debbugs.gnu.org
Subject: Re: bug#71986: RFC: date @ to support ms.
Date: Mon, 8 Jul 2024 20:18:13 +0100
On 08/07/2024 17:33, Andreas Schwab wrote:
> date --date='@1720378861.258' --rfc-3339=ns

Thanks. The problem is that the input string (from elsewhere) is
"1720378861258"  i.e. it's "integer ms", not "seconds with a decimal".
Also, this is an increasingly common format to see as an input

Slightly relatedly, for date-input, this:
  date --date '1/2/2024'
is ambiguous (most of the world sees this as 1st Feb; USA sees it as 2nd 
Jan).

=> so there are a few cases where date could benefit from a rule for how 
the --date field should be parsed, and if there isn't a flag, at least a 
clarification in the man page would be helpful.

Thanks very much,

Best wishes,

Richard








This bug report was last modified 318 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.