Re: Date and time arithmetic

Tech-Archive recommends: Speed Up your PC by fixing your registry



Thank you for your time.

"Vic Sowers" <Mail@xxxxxxxxxxxxx> wrote in message
news:42635e4c$0$64582$a726171b@xxxxxxxxxxxxxxxxxx
>
> I did it this way:
> moonMins = 44+60*(12+24*29);
> Start.setMinutes(Start.getMinutes()+moonMins);
> and also got 9:18.

Yes, I first tried something similar; that is, I tried advancing by minutes.
Thank you for verifying that your results are similar to mine.

> Then I did the date math by hand and, indeed, 9:18 is correct.
>
> I concluded that, since the Earth has moved a bit during the intervening
> month, the new moon appears little earlier....

So I will now assume that the problem is not JScript or my use of it. I
seldom use JScript; the language I use primarily is C++ and for scripting I
primarily use VBScript. I chose JScript for this, for no particular reason.
Date and time arithmetic seems to be less convenient and less obvious for
JScript. I will try to implement this using VBScript and/or C++. I will post
results here when I have something useful.


.



Relevant Pages

  • Re: Object Rexx to become Open Source
    ... Granted WSH is not a language. ... >> up quickly, then the knock against JScript would be that, because it is ... never said that JScript was bad or even not as good a language as VBScript; ... But our official standard scripting language for such things as logon ...
    (microsoft.public.scripting.wsh)
  • VBScript/JScript comparison
    ... differences between VBScript and JScript. ... reference types (objects, arrays, functions) are always passed by reference. ... Enumerator object's itemmethod. ...
    (microsoft.public.scripting.wsh)
  • Re: VBScript/JScript comparison
    ... > differences between VBScript and JScript. ... > Enumerator object's itemmethod. ... > primitive types are based on intrinsic objects that can be extended. ...
    (microsoft.public.scripting.wsh)
  • Re: Object Rexx to become Open Source
    ... We were talking "languages", WSH is just an interface to the o/s. ... > as provided by some other scripting languages, I have found it a significant ... source" on any of their pages and you'll see it's JScript all the way. ... also can't imagine using VBScript for XML?? ...
    (microsoft.public.scripting.wsh)
  • Re: Object Rexx to become Open Source
    ... If standards don't matter too much ... VBScript, but both Visual Basic and VBA are dead! ... One other thing you can do in JScript is comment out huge blocks of code ... server, you just put the module with your code and off you go. ...
    (microsoft.public.scripting.wsh)