On Wed, 12 Sep 2007, Eric Blake wrote:

% date -d "07-09-10 10:45:43 + 1 minute"
Mon Sep 10 03:45:43 PDT 2007

Try taking out the plus sign - date interprets this as a timezone
specifier.

Indeed.  This question has been asked before:
http://lists.gnu.org/archive/html/bug-coreutils/2007-07/msg00071.html

Would it be worthwhile adding yydebug support to date (and touch) with, say, a --date-debug flag? I tried turning it on and the output is confusingly dense, not even printing the token in all cases.

I see from the bison manual that a custom yyprint function can be provided, but I'm not familiar enough with parsers to suggest one.


Cheers,
Phil


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to