Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #29048

Re: "weekly" javascript?

Path csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: "weekly" javascript?
Date Mon, 28 Dec 2015 12:26:07 +0100
Organization PointedEars Software (PES)
Lines 31
Message-ID <1543804.bpBUuldlzj@PointedEars.de> (permalink)
References <super70s-3DE5C2.10244827122015@reader.albasani.net> <XmlHttpRequest-JSON-DHTML-20151227174128@ram.dialup.fu-berlin.de> <super70s-2E4557.12031327122015@reader.albasani.net> <week-20151227192148@ram.dialup.fu-berlin.de>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace solani.org 1451301969 27677 eJwNxcERwCAMA7CVMMR2GAfCZf8RWn3EJagcooLNtgqphgf+1zN4ixmPBWXvgO9MzN0ICOcD+oEPuA== (28 Dec 2015 11:26:09 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Mon, 28 Dec 2015 11:26:09 +0000 (UTC)
User-Agent KNode/4.14.2
X-User-ID eJwNy8cBwDAIBLCVwEcx4xDK/iM4+kthbOViaqKrS6Amn/64j9RoxWRuXM22exFLBM+WszEay8Ag5W+M4+b1AGCJFWM=
Cancel-Lock sha1:5mWejYt2o8esjEzv8vnuBOGGa0w=
X-NNTP-Posting-Host eJwFwYEBACAEBMCVUP4ZR8r+I3TnC4rmhmP7+Bxd+bRKhNGcGxbWr84F9IkVKjU360gb6fcDIOIRJQ==
Xref csiph.com comp.lang.javascript:29048

Show key headers only | View raw


Stefan Ram wrote:

> super70s <super70s@super70s.invalid> writes:
>>OK, but how do I indicate the appropriate element to come up according
>>to the week of year?
> 
>   The rules for the determination of the week of the year
>   depend on the culture (locale). Germany (»Kalenderwoche«)
>   might have other rules than the United States of America.

The reason for that, however, is only secondary the locale.  Germany, like 
all EU countries, “most of other European countries, most of Asia and 
Oceania”, uses the ISO week numbering, while the U.S. locale uses another 
numbering that is also used in “Canada, […], China, Japan, Israel, South 
Africa, [and] most of Latin America.”

<https://en.wikipedia.org/wiki/Week#Week_numbering>

JSX:date.js provides jsx.date.isoWeekNumber(), 
Date.prototype.getISOWeekNumber(), and jsx.date.strftime() and 
Date.prototype.strftime() with the "%V" format string, and jsx.date.format() 
and Date.prototype.format() with the "ww" format string, respectively.

<http://PointedEars.de/wsvn/JSX/trunk/date.js>
<http://PointedEars.de/scripts/test/date>

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: "weekly" javascript? super70s <super70s@super70s.invalid> - 2015-12-27 12:03 -0600
  Re: "weekly" javascript? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-28 12:26 +0100
  Re: "weekly" javascript? RobG <rgqld@iinet.net.au> - 2016-02-06 17:06 +1000
    Re: "weekly" javascript? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-02-06 10:59 +0100

csiph-web