Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!microsoft!davidbro From: davidbro@microsoft.UUCP (Dave BROWN) Newsgroups: comp.sys.handhelds Subject: Re: Day of week (was Automated daylight changing ...) Message-ID: <54003@microsoft.UUCP> Date: 9 Apr 90 18:39:41 GMT References: <109rhelps@yoda.byu.edu> Reply-To: davidbro@microsoft.UUCP (Dave BROWN) Organization: Microsoft Corp., Redmond WA Lines: 27 In article <109rhelps@yoda.byu.edu> rhelps@yoda.byu.edu writes: >Jim Cloos uses a Day of Week (DOW) routine in his program. I have some >improvements to offer. When I first got my 48SX and saw all the time and date >functions I was a little surprised that a DOW function was not included (I >know, I know "Life is short and ROM is full"), so I wrote one as my first >attempt at a 48 program. Looking at Jim's 28S adaptation I improved mine a bit >and here it is. Don't know about speed, but there's already a DOW routine built into the calculator, the TSTR function wouldn't be able to do what it does... So why don't we use it: << 12.00 TSTR 1 3 SUB >> If you want the number too: << 12.00 TSTR 1 3 SUB DUP {"SUN" "MON" "TUE" "WED" "THU" "FRI" "SAT"} POS 1 - >> Date is in DD.MMYYYY format. dave -- Dave Brown ...!uunet!microsoft!davidbro ...ni ssendriew eht tel eW "the night doesn't like it... looks just like your face in the moon to me"