bug-coreutils
[Top][All Lists]
Advanced

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

date bug


From: William Johnson
Subject: date bug
Date: Mon, 2 Jan 2006 16:02:48 -0500

I have run this script on my linux router and in cygwin.
In both cases, the date is changed from 2006 to 2005.

<--->
set Time_Stamp="01-Jan-2006 21:22:23"
echo "    $Time_Stamp"

set MyDate=`date --date="$Time_Stamp" "+%G-%m-%d %T %a"`
echo "    $MyDate"
<--->

The problem disappears on January 2.


reply via email to

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