From owner-freebsd-stable Sat Jan 1 8:52:51 2000 Delivered-To: freebsd-stable@freebsd.org Received: from cc1017255-a.srst1.fl.home.com (cc1017255-a.srst1.fl.home.com [24.3.122.197]) by hub.freebsd.org (Postfix) with ESMTP id CB99B14D5F for ; Sat, 1 Jan 2000 08:52:47 -0800 (PST) (envelope-from hg@n2wx.ampr.org) Received: from penny.n2wx.ampr.org (penny [172.16.0.5]) by cc1017255-a.srst1.fl.home.com (Postfix) with ESMTP id 4A76C1E5A; Sat, 1 Jan 2000 11:52:45 -0500 (EST) Received: by penny.n2wx.ampr.org (Postfix, from userid 1000) id 4BE50155; Sat, 1 Jan 2000 11:52:44 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14446.12507.986096.614422@penny.n2wx.ampr.org> Date: Sat, 1 Jan 2000 11:52:43 -0500 (EST) From: Howard Goldstein To: "Castor Fu" Cc: vev@michvhf.com, freebsd-stable@freebsd.org Subject: Re: date +%G still thinks it's 1999? (as it should) In-Reply-To: References: <14446.11440.328151.913890@penny.n2wx.ampr.org> X-Mailer: VM 6.72 under XEmacs Lucid Reply-To: hgoldste@bbs.mpcs.com Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Castor Fu writes: > > > On Sat, 1 Jan 2000, Howard Goldstein wrote: > > > > > I'm not sure what I'm doing wrong here :( > > Reading the man page wrong? Definitely yes > > %G is replaced by a year as a decimal number with century. This year > is the one that contains the greater part of the week (Monday as > the first day of the week). > > Since most of this week is in 1999, the answer is. . . . 1999 Arrgh... %Y works a whole lot better. Thanks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message