1754852 Members
5665 Online
108827 Solutions
New Discussion юеВ

get next business date.

 
SOLVED
Go to solution
Sir T S S
Advisor

get next business date.

I had a stupid question here, i check in my scripts if today is friday then i add 3 more day to get next monday, i multiply 3 times of 86400 but it give me 19700101 . How to do it using perl to add 3 more days.

i attach my scripts for checking simple only but i not familiar with perl.
3 REPLIES 3
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: get next business date.

Hi,

Can't open your attachment, but you could use someting like this.

# perl -le 'print scalar localtime time + 259200'
Mon Apr 4 11:59:25 2005

Best regards,
Robert-Jan
Peter Godron
Honored Contributor

Re: get next business date.

Hi,
fully agree with Robert-Jan. Change to 86400 to 259200. (24 * 60 *60 * 3)

Or from your earlier post:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=847198
Use A. Clay Stephenson script.

Regards
Sir T S S
Advisor

Re: get next business date.

thanksd