Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #11492
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: Looking for a Monday-Friday J/S |
| From | "Evertjan." <exjxw.hannivoort@interxnl.net> |
| References | (3 earlier) <gdspi7d1fnt81q2ohupeumu6vjjj6erefg@4ax.com> <Xns9FEF67A993785eejj99@194.109.133.133> <bsJpiULwFsLPFw$e@invalid.uk.co.demon.merlyn.invalid> <Xns9FF17DCF3F84Deejj99@194.109.133.133> <hasH$FI4LaMPFwi2@invalid.uk.co.demon.merlyn.invalid> |
| Message-ID | <Xns9FF3652BE2669eejj99@194.109.133.133> (permalink) |
| Date | 2012-02-08 08:56 +0000 |
Dr J R Stockton wrote on 07 feb 2012 in comp.lang.javascript:
> 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".
That may be so in the/your definition, John.
However,
Calling it "server-time setting" would be nice, whatever time correcty or
incorrecty it is set, but one also needs the summer-time definition of that
setting. If the server in Honolulu is set to Stockholm time does not matter
to the programmer as long as she/he knows the setting.
> The JavaScript Date Object's getTimezoneOffset is wrongly named;
> should be getTimeOffset.
That is the nice thing about serverside programming, you do not talk to
strangers, just to your own machine, and such errors are just a minor
nucance only to a purist like you and me.
Strange is, that in asp-vbs you cannot get this value,
so often I end a vbs-coded page with this js-derived variable,
to get to GMT,
[while keeping the fallacious naming]:
<% ' VBS
nowGMT = DateAdd("h", TimezoneOffset, Now)
%>
<script language='javascript' runat='server'>
var TimezoneOffset = new Date().getTimezoneOffset()/60;
</script>
[not for John, but for some of the others:]
Remember the runat-codes run before the main code.
===
We, John, discussed somethig like this on 05 sep 2007, among other times
in this NG, when you still thought:
"It's a good idea to read the newsgroup c.l.j and its FAQ. See below."
<http://bytes.com/topic/javascript/answers/703445-getting-gmt-particular-
format>
===
> Those who remember the beginning of "'ā€"And He Built a Crooked
> Houseā€"'" will not be surprised.
I don't, both.
> [..]
--
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
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