Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #11480
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | Dr J R Stockton <reply1206@merlyn.demon.co.uk> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Looking for a Monday-Friday J/S |
| Date | Tue, 7 Feb 2012 22:17:28 +0000 |
| Organization | Home |
| Lines | 58 |
| Message-ID | <hasH$FI4LaMPFwi2@invalid.uk.co.demon.merlyn.invalid> (permalink) |
| References | <dennism3-ya02408000R0302122054100001@news.datemas.de> <orapi7tcpscq199g7f1njul5l479re9vck@4ax.com> <dennism3-ya02408000R0302122233020001@news.datemas.de> <gdspi7d1fnt81q2ohupeumu6vjjj6erefg@4ax.com> <Xns9FEF67A993785eejj99@194.109.133.133> <bsJpiULwFsLPFw$e@invalid.uk.co.demon.merlyn.invalid> <Xns9FF17DCF3F84Deejj99@194.109.133.133> |
| NNTP-Posting-Host | JfH6RRPWQh8XzArFI0xgxA.user.speranza.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain;charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Turnpike/6.05-S (<hY+ExRCkcsssDA9uJ+0bCn8+UA>) |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.javascript:11480 |
Show key headers only | View raw
In comp.lang.javascript message <Xns9FF17DCF3F84Deejj99@194.109.133.133>
, Mon, 6 Feb 2012 11:22:03, Evertjan. <exjxw.hannivoort@interxnl.net>
posted:
>Dr J R Stockton wrote on 05 feb 2012 in comp.lang.javascript:
>
>> In comp.lang.javascript message <Xns9FEF67A993785eejj99@194.109.133.133>
>> , Sat, 4 Feb 2012 09:11:25, Evertjan. <exjxw.hannivoort@interxnl.net>
>> posted:
>>
>>>if (d.getDay()==6) { //Saturday in server timezone
>>
>> Misuse of the term "time zone".
>
>Happy misuse to show the difference between:
>
>server-time zone and server time-zone.
NO, that is another matter entirely.
The true meaning of "time zone" is "the set of places, wet or dry, which
all have the same difference from GMT except perhaps in their local
Summer" = "time zone" refers to "Standard Time".
The JavaScript Date Object's getTimezoneOffset is wrongly named; should
be getTimeOffset.
Those who remember the beginning of "'—And He Built a Crooked House—'"
will not be surprised.
>> The expression d.getDay()%6 detects the Western working week.
>
>Yes!
>
>for (var i=0; i<7; i++)
> document.write(i + " " + (0===i%6) + "<br>");
>
>while this does not work as intended:
>
>for (i=0;i<7;i++)
> document.write(i + " " + 0===i%6 + "<br>");
True. But it will rarely be necessary to list the classification of
days 0 to 6. Both of the following work well (but note that to detect
the working week requires the opposite answer).
X = !!(i%6)
i + " " + X + "<br>"
i + " " + !!(i%6) + "<br>"
--
(c) John Stockton, nr London UK. ?@merlyn.demon.co.uk DOS 3.3 6.20 ; WinXP.
Web <http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links.
PAS EXE TXT ZIP via <http://www.merlyn.demon.co.uk/programs/00index.htm>
My DOS <http://www.merlyn.demon.co.uk/batfiles.htm> - also batprogs.htm.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Looking for a Monday-Friday J/S dennism3@dennism3.invalid (Dennis M) - 2012-02-03 20:54 -0600
Re: Looking for a Monday-Friday J/S Jeff North <jnorthau@yahoo.com.au> - 2012-02-04 14:58 +1100
Re: Looking for a Monday-Friday J/S dennism3@dennism3.invalid (Dennis M) - 2012-02-03 22:33 -0600
Re: Looking for a Monday-Friday J/S Swifty <steve.j.swift@gmail.com> - 2012-02-04 08:56 +0000
Re: Looking for a Monday-Friday J/S "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-02-04 09:11 +0000
Re: Looking for a Monday-Friday J/S Dr J R Stockton <reply1205@merlyn.demon.co.uk> - 2012-02-05 17:50 +0000
Re: Looking for a Monday-Friday J/S "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-02-06 11:22 +0000
Re: Looking for a Monday-Friday J/S Dr J R Stockton <reply1206@merlyn.demon.co.uk> - 2012-02-07 22:17 +0000
Re: Looking for a Monday-Friday J/S "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-02-08 08:56 +0000
Re: Looking for a Monday-Friday J/S Gene Wirchenko <genew@ocis.net> - 2012-02-08 09:22 -0800
Re: Looking for a Monday-Friday J/S "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-02-09 16:49 +0000
Re: Looking for a Monday-Friday J/S Dr J R Stockton <reply1206@merlyn.demon.co.uk> - 2012-02-09 18:53 +0000
Re: Looking for a Monday-Friday J/S "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-02-10 08:13 +0000
Re: Looking for a Monday-Friday J/S Dr J R Stockton <reply1206@merlyn.demon.co.uk> - 2012-02-11 23:12 +0000
Re: Looking for a Monday-Friday J/S John G Harris <john@nospam.demon.co.uk> - 2012-02-10 16:02 +0000
Re: Looking for a Monday-Friday J/S Dr J R Stockton <reply1206@merlyn.demon.co.uk> - 2012-02-11 23:24 +0000
Re: Looking for a Monday-Friday J/S Andrew Poulos <ap_prog@hotmail.com> - 2012-02-04 20:13 +1100
Re: Looking for a Monday-Friday J/S Swifty <steve.j.swift@gmail.com> - 2012-02-05 10:01 +0000
Re: Looking for a Monday-Friday J/S Andrew Poulos <ap_prog@hotmail.com> - 2012-02-06 08:00 +1100
Re: Looking for a Monday-Friday J/S Swifty <steve.j.swift@gmail.com> - 2012-02-06 12:20 +0000
Re: Looking for a Monday-Friday J/S dennism3@dennism3.invalid (Dennis M) - 2012-02-07 01:05 -0600
Re: Looking for a Monday-Friday J/S Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-02-04 14:02 +0100
Re: Looking for a Monday-Friday J/S Dr J R Stockton <reply1205@merlyn.demon.co.uk> - 2012-02-05 17:41 +0000
Re: Looking for a Monday-Friday J/S Captain Paralytic <paul_lautman@yahoo.com> - 2012-02-07 05:18 -0800
csiph-web