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


Groups > comp.lang.javascript > #29048

Re: "weekly" javascript?

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: "weekly" javascript?
Date 2015-12-28 12:26 +0100
Organization PointedEars Software (PES)
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>

Show all headers | 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