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


Groups > comp.lang.javascript > #32967

Re: Is Date.prototoype.toString always en-us?

Path csiph.com!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Is Date.prototoype.toString always en-us?
Date Sat, 08 Apr 2017 20:13:57 +0200
Organization PointedEars Software (PES)
Lines 39
Message-ID <3000232.1N4lFRLu8V@PointedEars.de> (permalink)
References <ef8a2a84-de5e-4e9a-89fc-3144b262150c@googlegroups.com> <English-20170407003413@ram.dialup.fu-berlin.de> <qM6dnVMmKJqEinXFnZ2dnUU7-NnNnZ2d@westnet.com.au>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace solani.org 1491675237 1558 eJwFwYEBACAEBMCVJP8yjsj+I3SHzcVyI2gYzL7MqBAt5qtrAU/3eJDTjR5bcwBZpRmqzQ8iUBEL (8 Apr 2017 18:13:57 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Sat, 8 Apr 2017 18:13:57 +0000 (UTC)
User-Agent KNode/4.14.2
X-Face %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
X-NNTP-Posting-Host eJwFwQkBACAIA8BKTBhPHEHtH8E7qsMnzOnGx7d9TVbQ1KyuHmvsnnWrIh0pLUgUW1GLc+QDB3UQFw==
Cancel-Lock sha1:IzVqJ9xxth6MPK/F5h7tYGWDCWs=
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
X-User-ID eJwFwYEBwDAEBMCVQngyjuL3H6F3fiHoMDjM6dTIK3eTOWNoVHFjhe+81zbgIqVCbT4VCX7mmy21ROfR/QFeQBYI
Xref csiph.com comp.lang.javascript:32967

Show key headers only | View raw


RobG wrote:
^^^^
Your real name belongs there.

> On 7/04/2017 09:34, Stefan Ram wrote:
>> RobG <rgqld@iinet.net.au> writes:
>>> Also, whether this statement is true for other browsers where
>>> the default language is other than English?
>>
>>   I believe that in ECMAScript it returns an
>>   implementation-dependent string value that represents the
>>   date as a date and time in the current time zone using
>>   »a convenient, human-readable form«.
> 
> Yes, per ECMA-262, but question is about MDN, not ECMA-262.

You are proceeding from a false assumption.  MDN is _not_ a documentation 
“primarily for Mozilla browsers”.

However, if I install iceweasel-l10n-de=1:38.8.0esr-1~deb8u1, and execute
“LC_ALL=de_CH.UTF-8 iceweasel”, although the GUI now is in German,

  (new Date()).toString()

still is in English ("Sat Apr 08 2017 20:…:… GMT+0200 (CEST)").

  (new Date()).toLocaleString()

and

  (new Date()).toLocaleString("de")

are not ("8.4.2017 20:…:…").

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

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


Thread

Is Date.prototoype.toString always en-us? RobG <rgqld@iinet.net.au> - 2017-04-06 16:17 -0700
  Re: Is Date.prototoype.toString always en-us? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-04-07 13:35 +0200
  Re: Is Date.prototoype.toString always en-us? RobG <rgqld@iinet.net.au> - 2017-04-08 08:47 +1000
    Re: Is Date.prototoype.toString always en-us? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-04-08 20:13 +0200
      Re: Is Date.prototoype.toString always en-us? John G Harris <niam@jghnorth.org.uk.invalid> - 2017-04-09 11:58 +0100
        Re: Is Date.prototoype.toString always en-us? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-04-09 15:54 +0200
          Re: Is Date.prototoype.toString always en-us? Luuk <luuk@invalid.lan> - 2017-04-09 16:02 +0200
          Re: Is Date.prototoype.toString always en-us? John G Harris <niam@jghnorth.org.uk.invalid> - 2017-04-09 16:51 +0100
            Re: Is Date.prototoype.toString always en-us? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-04-09 18:09 +0200
              Re: Is Date.prototoype.toString always en-us? John G Harris <niam@jghnorth.org.uk.invalid> - 2017-04-10 10:34 +0100
                Re: Is Date.prototoype.toString always en-us? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-04-11 06:26 +0200
                Re: Is Date.prototoype.toString always en-us? John G Harris <niam@jghnorth.org.uk.invalid> - 2017-04-11 18:38 +0100
      Re: Is Date.prototoype.toString always en-us? RobG <rgqld@iinet.net.au> - 2017-04-14 15:57 +1000
      Re: Is Date.prototoype.toString always en-us? RobG <rgqld@iinet.net.au> - 2017-04-14 16:45 +1000
  Re: Is Date.prototoype.toString always en-us? Dr J R Stockton <reply1700@merlyn.demon.co.uk.invalid> - 2017-04-10 21:16 +0100
    Re: Is Date.prototoype.toString always en-us? Julio Di Egidio <julio@diegidio.name> - 2017-04-10 19:15 -0700

csiph-web