Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Feb 2000 14:32:03 -0800 (PST)
From:      <keith@mail.telestream.com>
To:        freebsd-questions@freebsd.org
Subject:   Odd date output
Message-ID:  <Pine.LNX.4.10.10002181423360.28091-100000@mail.telestream.com>

next in thread | raw e-mail | index | archive | help
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 <for better or worse>
=================================




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.10.10002181423360.28091-100000>