bugGNU Core Utilities - Bugs: bug #14352, GNU date (coreutils) -month does...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #14352: GNU date (coreutils) -month does not work as expected

Submitter:  None
Submitted:  Wed 31 Aug 2005 05:18:34 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Wont Fix
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Fri 21 Jul 2006 04:43:08 PM UTC, comment #1: 

How is that unexpected? You asked for the 31'st day of 06 (June), which would be 0701 (July 1).

Matthew Woehlke <woehlkmp>
Wed 31 Aug 2005 05:18:34 PM UTC, original submission:  

I have tried both 5.2.1 and 5.3.0 on AIX 5.2 and get the same strange behaivor.

AIX 5.2
date (coreutils) 5.2.1
date (GNU coreutils) 5.3.0

host001:/tmp/# gdate +%Y%m%d
20050831

host001:/tmp/# gdate -d "${YEAR}${MONTH}${DAY} -1 month" +%Y%m%d
20050731

host001:/tmp/# gdate -d "${YEAR}${MONTH}${DAY} -2 month" +%Y%m%d
20050701 ?????? Shouldn´t this be 20050630 ?????

host001:/tmp/# gdate -d "${YEAR}${MONTH}${DAY} -3 month" +%Y%m%d
20050531

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-08-25 eggert Open/ClosedOpen Closed
2006-08-25 eggert StatusNone Wont Fix

Back to the top

Powered by Savane 3.13-3230.
Corresponding source code