Re: Incorrect year in date function.

2010-01-04 Thread Jacob Jacobson
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

Re: Incorrect year in date function.

2010-01-04 Thread Andrew Schulman
> On Mon, Jan 4, 2010 at 1:40 PM, 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" > > %g (and the four

Re: Incorrect year in date function.

2010-01-04 Thread Mark J. Reed
On Mon, Jan 4, 2010 at 1:40 PM, 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" %g (and the four-digit version %G) i

Re: Incorrect year in date function.

2010-01-04 Thread cygwin at sipxx.com
The function worked quite correctly. %g is the year of the current ISO week number, that week started in 2009, not 2010. use %y if you want the year of the current date. Jacob Jacobson wrote: I am curious as to why this happened. I was at work yesterday and created a file. The name of t