X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.3 required=5.0 	tests=AWL,BAYES_00,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Jacob Jacobson <news@biyani.org>
Subject:  Re: Incorrect year in date function.
Date:  Mon, 04 Jan 2010 14:32:30 -0600
Lines: 21
Message-ID: <hhtj8t$aot$1@ger.gmane.org>
References:  <hhtcmj$j5r$1@ger.gmane.org>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
In-Reply-To: <hhtcmj$j5r$1@ger.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Jacob Jacobson wrote:
> 
> I am curious as to why this happened.
> 
> I was at work yesterday and created a file. The name of the file
> is created using the Cygwin date function.
> 
> REV=$(date +rev-%b-%d-%g)
> APPNAME="$1-$REV.img"
> 
> When I did a "ls" this morning, I noticed that the year was wrong
> on the file yesterday but is correct today (on a new file created
> today using the same script). I have a windows XP machine and the
> Cygwin version is quite recent.
> 
> 2010-01-04 11:55 debug-rev-Jan-04-10.img
> 2010-01-03 12:34 debug-rev-Jan-03-09.img
> 
> 

Thanks everyone.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

