Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsfeed.straub-nv.de!noris.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <18170635.egMJfb6KeS@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Fri, 01 Mar 2013 12:48:07 +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: 23 NNTP-Posting-Date: 01 Mar 2013 12:48:07 CET NNTP-Posting-Host: e2b7df33.newsspool3.arcor-online.net X-Trace: DXC=]=7TM_LekNa>jlK2>IgHGdMcF=Q^Z^V3h4Fo<]lROoRa8kF On 01/03/2013 00:45, J.R. wrote: >> On 26/02/2013 08:45, Jukka K. Korpela wrote: >>> 2013-02-26 12:54, Tony wrote: >>> >>>> var diff = Math.abs(new Date() - "2013/02/26 10:24:00"); This >>>> should be perfect legal I believe. >> >> […] > > Sorry, a correction is necessary here: the OP's code fails because there > is no meaning in subtracting: > > "Fri Mar 01 2013 00:36:34 GMT-0300" - "2013/02/26 10:24:00" // NaN Nonsense. The operands are converted to _Number_, not to String. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.