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


Groups > comp.lang.javascript > #11205

Re: Looking for a Monday-Friday J/S

Newsgroups comp.lang.javascript
Subject Re: Looking for a Monday-Friday J/S
From "Evertjan." <exjxw.hannivoort@interxnl.net>
References (1 earlier) <orapi7tcpscq199g7f1njul5l479re9vck@4ax.com> <dennism3-ya02408000R0302122233020001@news.datemas.de> <gdspi7d1fnt81q2ohupeumu6vjjj6erefg@4ax.com> <Xns9FEF67A993785eejj99@194.109.133.133> <bsJpiULwFsLPFw$e@invalid.uk.co.demon.merlyn.invalid>
Message-ID <Xns9FF17DCF3F84Deejj99@194.109.133.133> (permalink)
Date 2012-02-06 11:22 +0000

Show all headers | View raw


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.

> 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>");



-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

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


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