Hi ,
I am relatively new to unix...
Can u pls help me out to find out if the first day of the month is a working day ie from (Monday to Friday)...using Date and If clause in Korn shell..
This is very urgent.
Thanks for ur help... (7 Replies)
How to find the first day of previous month in unix mmddyyyy format?
example : today is 07052007 (in mmddyyyy)
output sud be 06012007
thanks
mohapatra (10 Replies)
Hi,
I want a script(ksh) to see if today is the last working day(Mon-Fri) of the month. If it is the last working day I need to print current date, else I need the last working day of previous month. Thanks in advance. (1 Reply)
Hello,
I wanted to display the month for previous day date. Like, today date is 18-Nov-2008. So the previous date is 17-Nov-2008. The output should be November.
If the today date is 1-DEC-2008, then output should be NOVEMBER.
If the today date is 1-JAN-2008, then output should be DECEMBER.... (4 Replies)
Hi All,
I need to find the previous month last day minus one day, using shell script. Can you guys help me to do this.
My Requirment is as below:
Input for me will be 2000909(YYYYMM)
I need the previous months last day minus 1 day timestamp. That is i need 2000908 months last day minus ... (3 Replies)
I am using the code below modified from a post I saw here regarding having the script write out future dates. The problem is that instead of making 8/1 it makes 7/32! Please help!
yy=`date +%Y`
mm=`date +%m`
dd=`date +%d`
echo "Today is : $yy $mm $dd"
#!/usr/bin/ksh
date '+%m... (5 Replies)
Hello All,
I am trying to come up with a shell script to count a specific word in a logfile on each day of this month, last month and the month before. I need to produce this report and email it to customer.
Any ideas would be appreciated! (5 Replies)
Hi Guys,
How to get First day of previous month and last day of previous month from trunc(sysdate) using SQL..?
Thanks in advance.
Br,
pinpe (2 Replies)
Hi All,
I have a requirement where I need to first capture the current day & move all the files from a particular directory based on a previous day.
i.e move all the files from one directory to another based on current day & a previous day. Here is what I am trying, but it gives me errors.... (2 Replies)
Discussion started by: dsfreddie
2 Replies
LEARN ABOUT PHP
jdmonthname
JDMONTHNAME(3) 1 JDMONTHNAME(3)jdmonthname - Returns a month nameSYNOPSIS
string jdmonthname (int $julianday, int $mode)
DESCRIPTION
Returns a string containing a month name. $mode tells this function which calendar to convert the Julian Day Count to, and what type of
month names are to be returned.
Calendar modes
+-----+--------------------------------------+---+
|Mode | | |
| | | |
| | Meaning | |
| | | |
| | Values | |
| | | |
+-----+--------------------------------------+---+
| 0 | | |
| | | |
| | Gregorian - abbreviated | |
| | | |
| | Jan, Feb, Mar, Apr, May, Jun, Jul, | |
| | Aug, Sep, Oct, Nov, Dec | |
| | | |
| 1 | | |
| | | |
| | Gregorian | |
| | | |
| | January, February, March, April, | |
| | May, June, July, August, September, | |
| | October, November, December | |
| | | |
| 2 | | |
| | | |
| | Julian - abbreviated | |
| | | |
| | Jan, Feb, Mar, Apr, May, Jun, Jul, | |
| | Aug, Sep, Oct, Nov, Dec | |
| | | |
| 3 | | |
| | | |
| | Julian | |
| | | |
| | January, February, March, April, | |
| | May, June, July, August, September, | |
| | October, November, December | |
| | | |
| 4 | | |
| | | |
| | Jewish | |
| | | |
| | Tishri, Heshvan, Kislev, Tevet, She- | |
| | vat, AdarI, AdarII, Nisan, Iyyar, | |
| | Sivan, Tammuz, Av, Elul | |
| | | |
| 5 | | |
| | | |
| | French Republican | |
| | | |
| | Vendemiaire, Brumaire, Frimaire, | |
| | Nivose, Pluviose, Ventose, Germinal, | |
| | Floreal, Prairial, Messidor, Thermi- | |
| | dor, Fructidor, Extra | |
| | | |
+-----+--------------------------------------+---+
PARAMETERS
o $jday
- The Julian Day to operate on
o $calendar
- The calendar to take the month name from
RETURN VALUES
The month name for the given Julian Day and $calendar.
PHP Documentation Group JDMONTHNAME(3)