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


Groups > comp.lang.javascript > #9279

Re: setDate()

Newsgroups comp.lang.javascript
Subject Re: setDate()
From "Evertjan." <exjxw.hannivoort@interxnl.net>
References <etdie7d0tt50b7kbo00l0ojfgfggqhj9ui@4ax.com> <9kss5oFfhrU2@mid.uni-berlin.de> <j7nie711nlf2b0u6bp61gtvqss10se8kpr@4ax.com> <Xns9FBC88451E58Feejj99@194.109.133.133> <f0lke7du3g977sm91ahbjvbk339svq5uu4@4ax.com>
Message-ID <Xns9FBCE4847C9D2eejj99@194.109.133.133> (permalink)
Date 2011-12-15 21:27 +0000

Show all headers | View raw


Gene Wirchenko wrote on 15 dec 2011 in comp.lang.javascript:

> On 15 Dec 2011 12:23:45 GMT, "Evertjan."
> <exjxw.hannivoort@interxnl.net> wrote:
> 
>>Gene Wirchenko wrote on 15 dec 2011 in comp.lang.javascript:
>>
>>>  I still would like to know if I can count on
>>>           SomeDate.setDate(SomeDate.getDate()+n);
>>> being normalised when the resulting day of month is out of range.  I
>>> could write the code myself to do this, but if I really do not have
>>> to, so much the better.
> 
>>This is something you can easily test yourself.
>>Why should we test it for you?
> 
>      I am not asking you to test it for me.  I am asking if I can
> count on the behaviour that I have already established by testing.

Which I can only answer with the results of my testing, 
either in the past or in the future.

[btw: Since I often use this method, my tests make me trust the method to 
be sound on the browser js-engines I tested, but not on say Iphone, since i 
am a Chrome and Android person with limited resources.]

>      It might be that I can count on the behaviour.  If so, where is
> this documented?  If not, then I would rather not have my code break
> in the future on a different browser.

Gene, that is not the way the javascript universe works.

If you want to be sure of the effect, you test it,
never trust the specs to be final.

The specs only tell you how it was ment to work.

So in fact you were [unknowingly perhaps] asking me to test it for you.

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

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


Thread

setDate() Gene Wirchenko <genew@ocis.net> - 2011-12-14 16:00 -0800
  Re: setDate() Jake Jarvis <pig_in_shoes@yahoo.com> - 2011-12-15 01:09 +0100
    Re: setDate() Gene Wirchenko <genew@ocis.net> - 2011-12-14 18:37 -0800
      Re: setDate() "Evertjan." <exjxw.hannivoort@interxnl.net> - 2011-12-15 12:23 +0000
        Re: setDate() Gene Wirchenko <genew@ocis.net> - 2011-12-15 12:11 -0800
          Re: setDate() "Evertjan." <exjxw.hannivoort@interxnl.net> - 2011-12-15 21:27 +0000
            Re: setDate() Gene Wirchenko <genew@ocis.net> - 2011-12-15 15:26 -0800
              Re: setDate() Swifty <steve.j.swift@gmail.com> - 2011-12-16 06:29 +0000
              Re: setDate() "Evertjan." <exjxw.hannivoort@interxnl.net> - 2011-12-16 08:41 +0000
  Re: setDate() Jake Jarvis <pig_in_shoes@yahoo.com> - 2011-12-15 12:28 +0100
    Re: setDate() Gene Wirchenko <genew@ocis.net> - 2011-12-15 12:12 -0800
      Re: setDate() "Evertjan." <exjxw.hannivoort@interxnl.net> - 2011-12-15 21:39 +0000
        Re: setDate() Jake Jarvis <pig_in_shoes@yahoo.com> - 2011-12-15 23:25 +0100
          Re: setDate() Jake Jarvis <pig_in_shoes@yahoo.com> - 2011-12-15 23:28 +0100
          Re: setDate() Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-12-17 00:04 +0100
            Re: setDate() Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-12-17 00:06 +0100
        Re: setDate() Swifty <steve.j.swift@gmail.com> - 2011-12-16 06:35 +0000
          Re: setDate() "Evertjan." <exjxw.hannivoort@interxnl.net> - 2011-12-16 08:29 +0000
  Re: setDate() Dr J R Stockton <reply1150@merlyn.demon.co.uk> - 2011-12-16 22:17 +0000

csiph-web