Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!217.188.199.168.MISMATCH!takemy.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <14217435.zA5glZemQV@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Fri, 22 Mar 2013 16:30:05 +0100 User-Agent: KNode/4.8.5 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. MIME-Version: 1.0 Lines: 49 NNTP-Posting-Date: 22 Mar 2013 16:32:26 CET NNTP-Posting-Host: aa9cb354.newsspool3.arcor-online.net X-Trace: DXC=7`13ENLifi]\9P[:DUn00QMcF=Q^Z^V3X4Fo<]lROoRQ8kF]gf^c5_;ZKk I am trying to use MakeTIme(), MakeDay(), and MakeDate(). > for a time zone offset, I am using > var tztc = MakeTime(parseInt(tza[0]), parseInt(tza[1]), 0, 0);//GMT-8 or > UTC-8 var day = MakeDay(time.getUTCFullYear(), time.getUTCMonth() + 1, > time.getUTCDate()); > var timeWithTZ = MakeTime(time.getUTCHours(), time.getUTCMinutes(), > time.getUTCSeconds(), time.getUTCMilliseconds()) + tztc; var tc = > TimeClip( MakeDate(day, timeWithTZ) ); var dt = new Date(tc); > > but this is causing the debugger error "MakeTime is not defined". I see > this operator in older books. Most books on this topic are bad, however you might have misunderstood. MakeTime() is an *Abstract* Operator. It is the name of a *Specification algorithm* used for computing the time value of Date instances, which in turn is used by other date-related algorithms. > so it's very probable (?) that the browser supports it, No, it is entirely impossible that “the browser” (which one) supports it, unless someone has implemented the Specification algorithm as a public method, and either made it part of their ECMAScript implementation or loaded it from a file. > but if so, how? it's related to the Date object. Read the ECMAScript Language Specification (again, more carefully this time). The current Edition is 5.1, and MakeTime() is specified in its subsection 15.9.1.11. The corresponding section starts with: | 15.9.1 Overview of Date Objects and Definitions of Abstract Operators | | The following functions are abstract operations that operate on time ^^^^^^^^^^^^^^^^^^^ | values (defined in 15.9.1.1). Note that, in every case, if any argument to | one of these functions is NaN, the result will be NaN. So, what are you really up to? And please do not post to Usenet using Google Groups. See also my signature. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.