[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
date bug
From: |
Assaf Feuerstein |
Subject: |
date bug |
Date: |
Wed, 31 May 2006 18:49:04 +0200 |
Hello,
Recently I found some strange bug in GNU date, it happen always at the
last day of each month...
I`ve included all information about the machine I`m running it on.
As you can see the 1 month ago give me the current month instead of last
month, and the 2 month ago give me an ok result.
Is there a way to fix the 1 month ago that it will also work in the last
day of the month?
bash-2.05b# uname -a
HP-UX IgniteUX B.11.11 U 9000/800 2261409245 unlimited-user license
bash-2.05b# ./date
Wed May 31 18:39:12 IDT 2006
bash-2.05b# ./date '+%m' --date='1 month ago'
05
bash-2.05b# ./date '+%m' --date='2 month ago'
03
With Best Regards
Assaf Feuerstein
Unix System Administrator
Bezeq International
Tel: +972-3-9257004
Fax: +972-3-9257542
Mobile: +972-50-4014004
- date bug,
Assaf Feuerstein <=