coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Date Computations cot executing properly!!


From: urvashi singla
Subject: Date Computations cot executing properly!!
Date: Wed, 30 Oct 2013 23:57:22 +0530

Hi,
If i execute following computation - 

Next=$(date +%Y%m%d --date="$User 1 day)

This should always give me next day of $User. But I tried it with following values - 
$User=20130925
$User=20130926
$User=20130927
$User=20130928

It gives correct result for all except for 20130927. For 20130927 it gives 20130927 instead of next date i.e. 20130928 I don't understand why is this so? Is this a bug?

Awaiting your response!!

Thanks and Regards,
Urvashi

reply via email to

[Prev in Thread] Current Thread [Next in Thread]