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


Groups > comp.lang.javascript > #24210 > unrolled thread

Re: Date.prototype.setTime

Started byThomas 'PointedEars' Lahn <PointedEars@web.de>
First post2014-05-18 00:34 +0200
Last post2014-05-18 08:37 +0200
Articles 2 — 2 participants

Back to article view | Back to comp.lang.javascript

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Date.prototype.setTime Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-05-18 00:34 +0200
    Re: Date.prototype.setTime "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-05-18 08:37 +0200

#24210 — Re: Date.prototype.setTime

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2014-05-18 00:34 +0200
SubjectRe: Date.prototype.setTime
Message-ID<3317286.bs45y0lo2E@PointedEars.de>
Stefan Ram wrote:

>   I have observed that I can have the following statements executed:
> 
> Date.prototype.setTime( 0 ); document.write( Date.prototype.getTime() );
> Date.prototype.setTime( 1 ); document.write( Date.prototype.getTime() );
> 
>   prints:
> 
> 01
> 
>   . So I can set and get some kind of property.

Yes, the [[PrimitiveValue]] internal property, according to ES 5.1.
 
>   Where is this property stored?

In the Date instance which is referred to by the initial value of the 
“Date.prototype” property; see ES 5.1, §§ 15.9.5.27, 15.9.4.1, and 15.9.5.

>   Is it used for anything?

Not to my knowledge.

I wonder, why would you investigate the more obscure features of these 
languages before having mastered their basic ones?

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

[toc] | [next] | [standalone]


#24211

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2014-05-18 08:37 +0200
Message-ID<XnsA33157B7DB284eejj99@194.109.133.133>
In reply to#24210
Thomas 'PointedEars' Lahn <PointedEars@web.de> wrote on 18 mei 2014 in 
comp.lang.javascript:

> I wonder, why would you investigate the more obscure features of these 
> languages before having mastered their basic ones?

Perhaps indeed, when you are a master, 
the appetite for wondering has gone away.

What a waste would that be.

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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web