Re: [CentOS] Trouble using date function in centos

2008-10-05 Thread Thomas Johansson
Stephen Harris wrote: On Sat, Oct 04, 2008 at 09:48:28PM +0200, Thomas Johansson wrote: Is there someone that can explain why I get incorrect results on centos 4.6 and 4.7 but not on centos 5.2?? test000:/% date -d "2008-10-25 +1 days" "+%Y-%m-%d" 2008-10-26 test000:/% date -d "2008-10-26 +1

Re: [CentOS] Trouble using date function in centos

2008-10-04 Thread William L. Maltby
On Sat, 2008-10-04 at 16:26 -0400, William L. Maltby wrote: > > > > > On centos 4.7 > > -- > > test001:/% date -d "2008-10-25 +1 days" "+%Y-%m-%d" > > 2008-10-26 > > test001:/% date -d "2008-10-26 +1 days" "+%Y-%m-%d" > > 2008-10-26 > > I just typed the above in on the console on m

Re: [CentOS] Trouble using date function in centos

2008-10-04 Thread William L. Maltby
On Sat, 2008-10-04 at 21:48 +0200, Thomas Johansson wrote: > > On centos 4.6 > -- > test000:/% date -d "2008-10-25 +1 days" "+%Y-%m-%d" > 2008-10-26 > test000:/% date -d "2008-10-26 +1 days" "+%Y-%m-%d" > 2008-10-26 > test000:/% uname -a > Linux test000... 2.6.9-67.ELsmp #1 SMP Fri N

Re: [CentOS] Trouble using date function in centos

2008-10-04 Thread Stephen Harris
On Sat, Oct 04, 2008 at 09:48:28PM +0200, Thomas Johansson wrote: > Is there someone that can explain why I get incorrect results on centos > 4.6 and 4.7 but not on centos 5.2?? > test000:/% date -d "2008-10-25 +1 days" "+%Y-%m-%d" > 2008-10-26 > test000:/% date -d "2008-10-26 +1 days" "+%Y-%m-%d

[CentOS] Trouble using date function in centos

2008-10-04 Thread Thomas Johansson
Is there someone that can explain why I get incorrect results on centos 4.6 and 4.7 but not on centos 5.2?? The date "2008-10-26 +1 days" should results in 2008-10-27 On centos 4.6 -- test000:/% date -d "2008-10-25 +1 days" "+%Y-%m-%d" 2008-10-26 test000:/% date -d "2008-10-26 +1 da