Anselmo,

I took another look and I think I found the problem with your _javascript_:  Actually two problems.  The timezone offset is apparently being added and then subtracted again... or something.  Anyway, the HoraMediodia function works for me here locally if the timezone offset adjustment is removed.  The second problem is probably due to daylight savings.  You saw the problem yourself with the comment
 //??? Por quĂ© 11 y no 12. 

This code works for me when I save it locally, and change to my local coordinates:

  var HoraMediodia = new Date(
    ( 12*3600 + 4*60*Longitud - EoT  )*1000);

Try changing that and see if it works in other locations.  I wouldn't assume it works because it's so hard to sort out time zones, local computer settings and the sequence of what gets applied by _javascript_.

Jack

At 02:04 PM 4/18/2003 -0700, you wrote:
Dear dialists,

  I would like to help these of you who helped me find bugs and faults in my online solar calendar.
I am especially grateful to Gianni Ferrari, Antonio Siccardi, David Bell, John Hall and Jack Aubert.
A lot of thanks!

I am working on solving the bugs you reported to me and I have to say that I think I have solved
almost all of them just by doing the following, which can serve as an advice:

-------------------------------------------------------------
   DO *NOT* use the _javascript_ Date() class except when
absolutely neccessary. It is much better to work with angles
and translate the results into hh:mm:ss format at the end.
-------------------------------------------------------------

When I did this all the problems got solved. I am not saying that the Date() class has got flaws (I leave
this for the gurus), just that it is much safer to work with angles.

I am not completely sure my script always calculates well the Julian Date (and consequently, the DifferenceOfDates),
and maybe some bugs could stay there but (I cross my fingers) the rest of them apparently have been solved.

As regards to the vocabulary, I have accepted all your suggestions, but still I am not sure about Noon...
Is it correct to say 'True Solar Noon'? or just 'True Noon'? I wouldn't like to use cumbersome expressions
like 'Solar Transit' or so.

And about the superfluous decimal figures (nice but useless) I have received as many opinions against
them than in favour, so I don't know what to do.


Thanks in advance for your help and, please, keep sending suggestions.

Anselmo


UBI SOL IBI CLARITAS
LOCATION AT:       Latitude (N):      Longitude (W):      | Change Coords |
   Legal Time
   UTC Time
   Julian Date
   Equation of Time [sec]
   Declination [deg]
   Ecliptic Longitude [deg]
   Altitude [deg]
   Azimuth SWNE [deg]
   Solar Local Time
   Hours from Sunset (italian)
   Hours from Sunrise (babilonian)
   Sidereal Local Time
   Sunrise Time
   Solar Noon Time
   Sunset Time

   

Reply via email to