Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Date arithmetic Date: Sun, 16 Nov 2014 18:49:43 +0100 Organization: PointedEars Software (PES) Lines: 22 Message-ID: <2522104.44tFU7hUGp@PointedEars.de> References: <111120142237479787%timstreater@greenbee.net> <6814026.8sujcrue1K@PointedEars.de> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: solani.org 1416160186 17775 eJwFwQERADEIAzBLcLSMyvnB41/CEkZ69kEyweVOOPR/pbIpOegtE7BnriK8eZtzcNfktnwJqRCB (16 Nov 2014 17:49:46 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sun, 16 Nov 2014 17:49:46 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwNyMEBwCAIA8CVsBCC49QI+4/Q3vPguVKMRAYG02fXtVC2b7uvH6WDQzuyN5wrtNWq6BUstwSpeepfArofWNgVcw== Cancel-Lock: sha1:AtEERviVkfac8XHKYRlyHsgGQ5c= X-NNTP-Posting-Host: eJwFwQkBwDAIA0BLgxAeOS0D/xJ6R7h4hznduFzNBOTy/nM+HWGEISEeLbVRfesIFdhpas4DBl8QeA== Xref: csiph.com comp.lang.javascript:26146 Christoph M. Becker wrote: > Dr J R Stockton wrote: >> Christoph M. Becker posted: >>> The calculation in jsx.date.dateOfYear() is rather intriguing; I wasn't >>> aware of that formula. >> What formula? > > The formula to calculate the day of the year for days between march and > december that is used in jsx.date.dateOfYear()[1]: I repeat: There is no jsx.date.dateOfYear(). There is jsx.date.dayOfYear(), and optionally Date.prototype.getDayOfYear(); the definitions of both can be found in > [1] -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not Cc: me. / Bitte keine Kopien per E-Mail.