home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / rexx / 1521 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.3 KB

  1. 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
  2. From: dac@prolix.apana.org.au (Andrew Clayton)
  3. Newsgroups: comp.lang.rexx
  4. Subject: Re: Funny thing about date() - ARexx 1.15
  5. Message-ID: <8iJms*121@prolix.apana.org.au>
  6. Date: 27 Jan 93 12:58:16 GMT
  7. References: <paul.04ez@dragons.DIALix.oz.au>
  8. Organization: More like Dis~, really.
  9. Lines: 26
  10. X-Newsreader: Arn V1.00
  11.  
  12. In article <paul.04ez@dragons.DIALix.oz.au>, Paul O'Neill writes:
  13.  
  14. > I was recently using the date() function under ARexx 1.15 and discovered that you
  15. > can provide a second argument being the day number since, well, somewhen.
  16. > If I call date('n', daynum) I get a date string that is correct for that day.
  17. > If I call date('d', daynum) I get the wierdest day of the month!!!
  18. > I set up daynum to be for February 3rd and date('d', daynum) returned 35!!
  19.  
  20. D is Days since beginning of the year in question.
  21.  
  22. C is Days since beginning of century
  23.  
  24. B is Days since Jan 1 0001
  25.  
  26. W is the weekday.
  27.  
  28. All in the Arexx manual.
  29.  
  30. Dac
  31. --
  32. dac@prolix.apana.org.au              David Andrew Clayton.           // _| _  _
  33. dac@prolix.sserve.cc.adfa.oz.au      Canberra, Australia           \X/ (_](_](_
  34.                     <Using ARN on an Amiga 4000. Yay!>
  35.