On Tue, Mar 29, 2011 at 04:55:35PM +0100, James Bensley wrote:
Can anyone explain this?
[user@machine ~]$ date Tue Mar 29 16:48:38 BST 2011 [user@machine ~]$ date --date="1 month ago" Tue Mar 1 15:48:47 GMT 2011
Shouldn't that last one say the date one month ago, not 28 days ago? (I suppose one month needs to be quantified). Not sure how 'date' has worked that out but I'm guessing the change in time zone might perhaps be to blame?
Can anyone shed some light on this?
Isn't '1 month ago' 28 days when the 'last' month was February?