home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!spool.mu.edu!uwm.edu!rpi!batcomputer!munnari.oz.au!manuel.anu.edu.au!sserve!prolix!prolix.apana.org.au!dac
- From: dac@prolix.apana.org.au (Andrew Clayton)
- Newsgroups: comp.lang.rexx
- Subject: Re: Funny thing about date() - ARexx 1.15
- Message-ID: <8iJms*121@prolix.apana.org.au>
- Date: 27 Jan 93 12:58:16 GMT
- References: <paul.04ez@dragons.DIALix.oz.au>
- Organization: More like Dis~, really.
- Lines: 26
- X-Newsreader: Arn V1.00
-
- In article <paul.04ez@dragons.DIALix.oz.au>, Paul O'Neill writes:
-
- > I was recently using the date() function under ARexx 1.15 and discovered that you
- > can provide a second argument being the day number since, well, somewhen.
- >
- > If I call date('n', daynum) I get a date string that is correct for that day.
- >
- > If I call date('d', daynum) I get the wierdest day of the month!!!
- >
- > I set up daynum to be for February 3rd and date('d', daynum) returned 35!!
-
- D is Days since beginning of the year in question.
-
- C is Days since beginning of century
-
- B is Days since Jan 1 0001
-
- W is the weekday.
-
- All in the Arexx manual.
-
- Dac
- --
- dac@prolix.apana.org.au David Andrew Clayton. // _| _ _
- dac@prolix.sserve.cc.adfa.oz.au Canberra, Australia \X/ (_](_](_
- <Using ARN on an Amiga 4000. Yay!>
-