From owner-freebsd-questions Fri Feb 18 14:32:14 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.telestream.com (mail.telestream.com [205.238.4.5]) by hub.freebsd.org (Postfix) with ESMTP id C9CC837BAAD for ; Fri, 18 Feb 2000 14:32:10 -0800 (PST) (envelope-from keith@mail.telestream.com) Received: from localhost (keith@localhost) by mail.telestream.com (8.9.3/8.9.3) with ESMTP id OAA28428 for ; Fri, 18 Feb 2000 14:32:04 -0800 Date: Fri, 18 Feb 2000 14:32:03 -0800 (PST) From: To: freebsd-questions@freebsd.org Subject: Odd date output Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm running 3.4-Stable and have writen a realy nifty web based billing program for us. In testing it I've run into a odd 'date' error that is hosing my entire system. In portions of the script(s) I'm nabing the date as such DATE=`/bin/date +%G%m%d` All works fine there and I get what I want. In other parts of the script(s) I use date in a different format CURRENT_MONTH=`/bin/date +%m` This also works fine with the desired output. BUT,,, when I test things to make sure is all fine I step up the CURRENT_MONTH with this command CURRENT_MONTH=`/bin/date -v March +%m` This works fine for EVERY month except for May. When I change the CURRENT_MONTH to be CURRENT_MONTH=`/bin/date -v May +%m` It errors out big time with this. ---------- May: Cannot apply date adjustment usage: date [-nu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... [-f fmt date | [[[[[cc]yy]mm]dd]HH]MM[.ss]] [+format] ---------- Any clue as to why it would work fine on all other date adjustments with May being the execption? Thank you. Keith ================================= I hearby change the name of RedHat to RedSplat. Keith W. At the helm ================================= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message