OK, I goofed on that one. I assumed (wrongly) that because JM allowed 6 parameters on a JM ROM and appeared to return a vaguely right number I assumed it worked. Except it just "pretends" to work and of course you can't tell accurately from an E number where in the year it was until you do detailed checks with storing DATE result then using DATE$ to see what it makes of it - no parameter checks on JM it would seem. Using DATE with 6 parameters on a JM ROM returns the same result as DATE with no parameters. Or with any number of parameters! At least JS is kind enough to give err_bp when you try :-(
So I have been taught a lesson, not to let APPARENT results fool me. -- Dilwyn Jones ----- Original Message ----- From: "Rich Mellor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 25, 2006 8:39 PM Subject: Re: [ql-users] month number > On Mon, 25 Sep 2006 20:40:17 +0100, Robert Newson > <[EMAIL PROTECTED]> wrote: > >> Dilwyn Jones wrote: >> >>>> Robert Newson wrote: >>>> >>>>> DATE returns the number of seconds [since 01/01/61] for the >>>>> /current/ >>>>> date/time (I suspect it just reads a/the clock); >>>>> >>>> It can read the clock, but you can also do >>>> PRINT DATE(1996,1,10,12,59,59) >>>> >>>> Marcel >>>> >>> I suspect most people don't know about this form of DATE, since >>> the QL >>> manual (Concepts - Date) does not list the 6 parameter version, >>> and >>> neither does the Jan Jones Superbasic guide. >> >> I certainly didn't. >> > > Odd - it was certainly pushed by Lau as one of the improvements made > by > Minerva - are you sure it works on a JM ROM or earlier?? > > > -- > Rich Mellor > RWAP Services > URL:http://www.rwapsoftware.co.uk > URL:http://www.rwapadventures.com > URL:http://www.rwapservices.co.uk > URL:http://www.internetbusinessangels.com > > _______________________________________________ > QL-Users Mailing List > http://www.q-v-d.demon.co.uk/smsqe.htm > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: > 22/09/2006 > > -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 22/09/2006 _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
