[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is the DateToJulian Function Correct?



PureBytes Links

Trading Reference Links

Has anyone here on the list ever verified that the Julian Date functions
found within TradeStation work properly?  I might be wrong, but after
reading about the calculations of Julian Date in Numerical Recipes in C
and then using a few different Julian Date calculators found on the web,
it appears that the TradeStation values are incorrect.

For example, in TradeStation if you pass the date April 8, 1996 (960408)
to DateToJulian [DateToJulian(960408)] you get 35163.  All of the other
calculators return a value of 2450182 for April 8, 1996.

Does anyone know why this discrepancy exists?

Andrew

One of the better Julian Date Calculators on the web can be found at:

http://wwwmacho.mcmaster.ca/JAVA/JD.html