GNU bug report logs - #25554
date: add iso-8601 week-format option

Previous Next

Package: coreutils;

Reported by: Rami Lehti <rami.lehti <at> bitwise.fi>

Date: Fri, 27 Jan 2017 07:25:02 UTC

Severity: wishlist

Tags: patch, wontfix

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25554 in the body.
You can then email your comments to 25554 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#25554; Package coreutils. (Fri, 27 Jan 2017 07:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Rami Lehti <rami.lehti <at> bitwise.fi>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Fri, 27 Jan 2017 07:25:02 GMT) Full text and rfc822 format available.

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

From: Rami Lehti <rami.lehti <at> bitwise.fi>
To: bug-coreutils <at> gnu.org
Subject: date to support iso-8601 week-format (patch included)
Date: Fri, 27 Jan 2017 09:19:14 +0200
[Message part 1 (text/plain, inline)]
Hi,

Currently 'date -Iweeks' does not display the ISO 8601 standard's week
format. Neither does it support the ordinal format in that standard.
Attached to this message you will find a patch for this issue. The patch
has been made against latest git master branch. The patch itself is
trivial.

Please consider applying it coreutils.

Kind regards,
Rami Lehti
[iso-8601.weeks.patch (text/x-patch, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#25554; Package coreutils. (Fri, 27 Jan 2017 10:35:02 GMT) Full text and rfc822 format available.

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

From: Pádraig Brady <P <at> draigBrady.com>
To: Rami Lehti <rami.lehti <at> bitwise.fi>, 25554 <at> debbugs.gnu.org
Subject: Re: bug#25554: date to support iso-8601 week-format (patch included)
Date: Fri, 27 Jan 2017 10:34:25 +0000
On 27/01/17 07:19, Rami Lehti wrote:
> Hi,
> 
> Currently 'date -Iweeks' does not display the ISO 8601 standard's week
> format. Neither does it support the ordinal format in that standard.
> Attached to this message you will find a patch for this issue. The patch
> has been made against latest git master branch. The patch itself is
> trivial.
> 
> Please consider applying it coreutils.

This looks useful thanks.

I'd probably present 'day of year' to the user in --help
rather than 'ordinal'.

I'll add a test and NEWS.

cheers,
Pádraig




Information forwarded to bug-coreutils <at> gnu.org:
bug#25554; Package coreutils. (Fri, 27 Jan 2017 22:23:01 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Rami Lehti <rami.lehti <at> bitwise.fi>, 25554 <at> debbugs.gnu.org
Subject: Re: bug#25554: date to support iso-8601 week-format (patch included)
Date: Fri, 27 Jan 2017 14:22:16 -0800
I dunno, there are several ISO 8601 formats that 'date -I' doesn't have a 
special case for now; why add these particular shorthands? If we go down this 
route, shouldn't we also add shorthands for %Y%j, %GW%V, %G-W%V-%u, etc., etc.? 
Where will it stop?

Instead, perhaps we should just suggest to people that they use ordinary date 
formats, as standardized by POSIX. These should be more portable anyway. -I is 
meant as a convenience for interactive use, and I doubt whether people would 
want to use "date -Iweek" interactively much.




Information forwarded to bug-coreutils <at> gnu.org:
bug#25554; Package coreutils. (Sun, 28 Oct 2018 08:00:02 GMT) Full text and rfc822 format available.

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

From: Assaf Gordon <assafgordon <at> gmail.com>
To: Rami Lehti <rami.lehti <at> bitwise.fi>, 25554 <at> debbugs.gnu.org
Subject: Re: bug#25554: date to support iso-8601 week-format (patch included)
Date: Sun, 28 Oct 2018 01:59:45 -0600
retitle 25554 date: add iso-8601 week-format option
severity 25554 wishlist
tags 25554 wontfix patch
close 25554
stop

(triaging old bugs)

On 2017-01-27 3:22 p.m., Paul Eggert wrote:
> I dunno, there are several ISO 8601 formats that 'date -I' doesn't have 
> a special case for now; why add these particular shorthands? If we go 
> down this route, shouldn't we also add shorthands for %Y%j, %GW%V, 
> %G-W%V-%u, etc., etc.? Where will it stop?
> 
> Instead, perhaps we should just suggest to people that they use ordinary 
> date formats, as standardized by POSIX. These should be more portable 
> anyway. -I is meant as a convenience for interactive use, and I doubt 
> whether people would want to use "date -Iweek" interactively much.
> 

Given the above, and no further comments in more than a year,
I'm closing this as "wontfix".
Discussion can continue by replying to this thread.

-assaf





Changed bug title to 'date: add iso-8601 week-format option' from 'date to support iso-8601 week-format (patch included)' Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 28 Oct 2018 08:00:03 GMT) Full text and rfc822 format available.

Severity set to 'wishlist' from 'normal' Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 28 Oct 2018 08:00:03 GMT) Full text and rfc822 format available.

Added tag(s) wontfix and patch. Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 28 Oct 2018 08:00:03 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 25554 <at> debbugs.gnu.org and Rami Lehti <rami.lehti <at> bitwise.fi> Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 28 Oct 2018 08:00:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 25 Nov 2018 12:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 208 days ago.

Previous Next


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