date function current month and last month the same
- From: wolffc@xxxxxxxxx
- Date: 31 May 2007 08:28:26 -0700
I have a process the uses the date function to get the last month and
the current month. Here are the functions
set x = `date -d "-1 month" +%b`
set y = `date -d "0 month" +%b`
For some reason x and y are both May. Does this have something to do
with May being 31 days? This had been working all of April and all of
May. I am using csh
Thanks for any help
.
- Follow-Ups:
- Re: date function current month and last month the same
- From: Bill Marcum
- Re: date function current month and last month the same
- From: Stephane CHAZELAS
- Re: date function current month and last month the same
- Prev by Date: Re: Simple bash script
- Next by Date: Re: date function current month and last month the same
- Previous by thread: not exiting from script after creating a background process!!
- Next by thread: Re: date function current month and last month the same
- Index(es):