From owner-freebsd-questions Mon Nov 4 1:38:57 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E02C637B404 for ; Mon, 4 Nov 2002 01:38:56 -0800 (PST) Received: from smtpsrv02.teledanmark.dk (smtpsrv02.teledanmark.dk [193.3.141.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92B6143E77 for ; Mon, 4 Nov 2002 01:38:55 -0800 (PST) (envelope-from cnlsn@tdc.dk) Received: from mailscansrv06.tdk.dk (mailscansrv06 [192.168.248.33]) by smtpsrv02.teledanmark.dk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id V0QXXP29; Mon, 4 Nov 2002 10:39:45 +0100 Received: from 172.30.1.96 by mailscansrv06.tdk.dk (InterScan E-Mail VirusWall NT); Mon, 04 Nov 2002 10:38:34 +0100 Received: by CONBR004 with Internet Mail Service (5.5.2653.19) id ; Mon, 4 Nov 2002 10:39:35 +0100 Message-ID: <6184B203EF3D3C49B86625828FED723E01ECA509@VESTMB201A.tdk.dk> From: Claus Fonnesbek Nielsen To: "'freebsd-questions@freebsd.org'" Subject: date command bug? Date: Mon, 4 Nov 2002 10:38:23 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi I get an error when I try the following command: guf@loghost01% date -v31d -v10m -v2002y 31d: Cannot apply date adjustment usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... [-f fmt date | [[[[[cc]yy]mm]dd]HH]MM[.ss]] [+format] Why... there is 31 days in October, so is it a BUG It works with the following command: guf@loghost01% date -v30d -v10m -v2002y -v+1d Thu Oct 31 10:35:55 CET 2002 Best Regards Claus Fonnebsek Nielsen Denmark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message