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


Groups > comp.lang.javascript > #32826

Re: Another JScript date/time bug, it seems

Newsgroups comp.lang.javascript
Subject Re: Another JScript date/time bug, it seems
From "Evertjan." <exxjxw.hannivoort@inter.nl.net>
References <2c32354c-7b9c-41b4-8366-8cba6d020edb@googlegroups.com>
Date 2017-03-21 10:30 +0100
Message-ID <XnsA73F6AEC27BFBeejj99@194.109.6.166> (permalink)

Show all headers | View raw


Dr J R Stockton <J.R.Stockton@physics.org> wrote on 21 Mar 2017 in 
comp.lang.javascript:

> Note date/time of posting.
> 
> Please test in Europe while still Winter Time, and in US/CA  !!
> 
> My Location : Greater London
> Op Sys : Win XP sp3, up-to-date
> SubSys : Command Prompt
> TIME : 2017-03-20 23:37 Approx
> SCREEN :
> 
> 
> Prompt>echo.|date
> The current date is: 2017-03-20
> Enter the new date: (yy-mm-dd)
> 
> Prompt>echo.|time
> The current time is: 23:37:25.95
> Enter the new time:
> 
> Prompt>type $kk.js
>  WScript.StdErr.WriteLine(new Date())
> 
> 
> Prompt>cscript //nologo $kk.js
> Tue Mar 21 00:37:36 UTC+0100 2017
> 
> Prompt>echo.|date
> The current date is: 2017-03-20
> Enter the new date: (yy-mm-dd)
> 
> Prompt>echo.|time
> The current time is: 23:37:56.78
> Enter the new time:
> 
> 
> AMAZEMENT!

Must be a severe case of Brexitis mayensis, 
since overhere:

Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\Users\Evertjan>echo.|time
The current time is: 10:17:52.76
Enter the new time:

C:\Users\Evertjan>echo.|date
The current date is: 21-03-2017
Enter the new date: (dd-mm-yy)

C:\Users\Evertjan>echo WScript.StdErr.WriteLine(new Date()) >kk.js

C:\Users\Evertjan>type kk.js
WScript.StdErr.WriteLine(new Date())

C:\Users\Evertjan>cscript //nologo kk.js
Tue Mar 21 10:21:11 UTC+0100 2017

Seriously, May may, like the Mau Mau, have nothing to do with it,
just your [nonreported] version of c//wscript engine, perhaps?
Or that of the O.S.?

-- 
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

Another JScript date/time bug, it seems Dr J R Stockton <J.R.Stockton@physics.org> - 2017-03-20 16:42 -0700
  Re: Another JScript date/time bug, it seems "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-03-21 10:30 +0100
    Re: Another JScript date/time bug, it seems Dr J R Stockton <J.R.Stockton@physics.org> - 2017-03-21 12:29 -0700
      Re: Another JScript date/time bug, it seems Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-03-22 09:09 +0100
        Re: Another JScript date/time bug, it seems Dr J R Stockton <J.R.Stockton@physics.org> - 2017-03-22 02:13 -0700
      Re: Another JScript date/time bug, it seems Dr J R Stockton <J.R.Stockton@physics.org> - 2017-03-23 09:22 -0700
        Re: Another JScript date/time bug, it seems Dr J R Stockton <J.R.Stockton@physics.org> - 2017-03-26 05:45 -0700
          Re: Another JScript date/time bug, it seems "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-03-26 17:42 +0200
            Re: Another JScript date/time bug, it seems Dr J R Stockton <J.R.Stockton@physics.org> - 2017-03-28 08:16 -0700
  Re: Another JScript date/time bug, it seems Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-03-21 16:37 +0100

csiph-web