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