Bauke Jan Douma <bjdouma <at> xs4all.nl> writes:

> >   ~ $ date --date "4:59:54 1 hour 53 min 46 sec ago"
> >   Wed Jan 28 06:52:08 CST 2009
> 
> Seems like the 1 hour is added, the 53 minutes is added, and
> then the 46 seconds is ... subtracted.

In other words, at some point between coreutils 5.2.1 and 6.10, the parse 
provided by getdate.y changed from:

(4:59:54) + ((1 hour 53 min 46 sec) ago)

to

(4:59:54) + (1 hour 53 min) + ((46 sec) ago)

where ago negates its argument.

I've verified that the parse is unchanged between 6.10 and now (7.0+).
It's got to be one of these gnulib patches:
git log 30ffdfc..81e61b -- lib/getdate.y

although several of them touch relative computations, so it wasn't obvious from 
just the ChangeLog messages.

-- 
Eric Blake




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

Reply via email to