Article View: bc.unix
Article #69Re: Need help with script
From: Hugh J. Baker
Date: Thu, 28 Nov 2002 14:57
Date: Thu, 28 Nov 2002 14:57
16 lines
1691 bytes
1691 bytes
write a c program to do this function for you "calc" to do the calculations. Then call it in the script. Use a 2-D array in the "calc program" (an array of 12 integers in each set the value for each month 1-12). You should be able to take it from there. "tom" <moodade@optonline.net> wrote in message news:3DDC58AE.6000305@optonline.net... > I'm trying to write a script that will return the last business day's > date in mmddyy format. > Does anybody know of an easy way to do this. > Im having trouble accounting for Monday's are easy, I just subtract 3 > and get friday's date, but Im having trouble with the beginning of the > month being that all months don't have the same amount of days. any > help would be greatly appreciated. > > Tom >
Technical Details
Message-ID:
<as5aql027oq@enews3.newsguy.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed2.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!news.he.net!cyclone-sf.pbi.net!129.250.175.17!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews3References:
<3DDC58AE.6000305@optonline.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114424,6ad515f0eb81bf9 X-Google-Attributes: gid114424,public X-Google-ArrivalTime: 2002-11-28 07:23:28 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed2.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!news.he.net!cyclone-sf.pbi.net!129.250.175.17!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews3 From: "Hugh J. Baker" <hbaker@texoma.net> Newsgroups: bc.unix Subject: Re: Need help with script Date: Thu, 28 Nov 2002 08:57:55 -0600 Organization: http://extra.newsguy.com Lines: 18 Message-ID: <as5aql027oq@enews3.newsguy.com> References: <3DDC58AE.6000305@optonline.net> NNTP-Posting-Host: p-318.newsdawg.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106