![]() |
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
![]()
I'm desperately seeking an equation that can calculate the current Julian
date _with time_. I want to use this to write a macro. This equation would be able to do the conversion using the following integers: year, month, date, hour, minutes, seconds, each provided separately. Is there such a formula? Thanks much. -- Vandija Sanoth ) |
#2
|
|||
|
|||
![]()
"Vandija Sanoth" wrote in message ...
I'm desperately seeking an equation that can calculate the current Julian date _with time_. I want to use this to write a macro. This equation would be able to do the conversion using the following integers: year, month, date, hour, minutes, seconds, each provided separately. Is there such a formula? Thanks much. -- Vandija Sanoth ) 'Lo Vandija -- You might get with Welch... welch@physun ....he's done already done it... http://www.physics.mcmaster.ca/Fac_Welch/JD.html hth happy days and... starry starry nights! -- God! i hope so very deeply if there is a Heaven, That all the people traveled there who died on Nine/Eleven, And all the people in the world who spread great hate as well. But yet i fear the haters shall most surely boil in Hell. Paine Ellsworth |
#3
|
|||
|
|||
![]()
"Vandija Sanoth" wrote in message ...
I'm desperately seeking an equation that can calculate the current Julian date _with time_. I want to use this to write a macro. This equation would be able to do the conversion using the following integers: year, month, date, hour, minutes, seconds, each provided separately. Is there such a formula? Thanks much. -- Vandija Sanoth ) 'Lo Vandija -- You might get with Welch... welch@physun ....he's done already done it... http://www.physics.mcmaster.ca/Fac_Welch/JD.html hth happy days and... starry starry nights! -- God! i hope so very deeply if there is a Heaven, That all the people traveled there who died on Nine/Eleven, And all the people in the world who spread great hate as well. But yet i fear the haters shall most surely boil in Hell. Paine Ellsworth |
#4
|
|||
|
|||
![]() "Vandija Sanoth" wrote in message ... I'm desperately seeking an equation that can calculate the current Julian date _with time_. I want to use this to write a macro. This equation would be able to do the conversion using the following integers: year, month, date, hour, minutes, seconds, each provided separately. Is there such a formula? Thanks much. http://scienceworld.wolfram.com/astr...ulianDate.html Guillermo |
#5
|
|||
|
|||
![]() "Vandija Sanoth" wrote in message ... I'm desperately seeking an equation that can calculate the current Julian date _with time_. I want to use this to write a macro. This equation would be able to do the conversion using the following integers: year, month, date, hour, minutes, seconds, each provided separately. Is there such a formula? Thanks much. http://scienceworld.wolfram.com/astr...ulianDate.html Guillermo |
#6
|
|||
|
|||
![]()
Vandija Sanoth wrote in
: I'm desperately seeking an equation that can calculate the current Julian date _with time_. I want to use this to write a macro. This equation would be able to do the conversion using the following integers: year, month, date, hour, minutes, seconds, each provided separately. Is there such a formula? Thanks much. If you can read BASIC code then download the file CALJD.BAS from http://skyandtelescope.com/resources...icle_326_4.asp The hms may be added as a fraction of a day to the "D" input. The reverse routine is also there as JDCAL.BAS Martin |
#7
|
|||
|
|||
![]()
Vandija Sanoth wrote in
: I'm desperately seeking an equation that can calculate the current Julian date _with time_. I want to use this to write a macro. This equation would be able to do the conversion using the following integers: year, month, date, hour, minutes, seconds, each provided separately. Is there such a formula? Thanks much. If you can read BASIC code then download the file CALJD.BAS from http://skyandtelescope.com/resources...icle_326_4.asp The hms may be added as a fraction of a day to the "D" input. The reverse routine is also there as JDCAL.BAS Martin |
#8
|
|||
|
|||
![]()
["G.P"; Sun, 14 Sep 2003 13:11:39 GMT]
http://scienceworld.wolfram.com/astr...ulianDate.html Thanks to all for replying. I simply couldn't find this information in my own searching. (I saw so much, maybe I glazed right over it.) I just have one follow-up question. Like I believe I mentioned in my original post, I want to make a macro to handle this (in Boxer Text Editor). I can do the conversion just fine, but I don't know how to convert the INT in the formula "For all AD dates in the Gregorian calendar" to macro-speak. Any ideas? (I don't know what class of programming the Boxer macro language is in, but most of the math is written in the standard computer syntax (e.g., 3 + 4 * [2 - 3]).) -- Vandija Sanoth ) |
#9
|
|||
|
|||
![]()
["G.P"; Sun, 14 Sep 2003 13:11:39 GMT]
http://scienceworld.wolfram.com/astr...ulianDate.html Thanks to all for replying. I simply couldn't find this information in my own searching. (I saw so much, maybe I glazed right over it.) I just have one follow-up question. Like I believe I mentioned in my original post, I want to make a macro to handle this (in Boxer Text Editor). I can do the conversion just fine, but I don't know how to convert the INT in the formula "For all AD dates in the Gregorian calendar" to macro-speak. Any ideas? (I don't know what class of programming the Boxer macro language is in, but most of the math is written in the standard computer syntax (e.g., 3 + 4 * [2 - 3]).) -- Vandija Sanoth ) |
#10
|
|||
|
|||
![]()
["Vandija Sanoth"; Sun, 14 Sep 2003 18:07:39 GMT]
I just have one follow-up question. I have a formula to compute the Julian date. What I really need now is a way to compute the current UT time into the decimal numbers following the whole date numbers. Can the decimal time-notation be reliably calculated independent of the date, since it's only based on the time of day? I would imagine that there is a simple formula. I'd sincerly appreciate any help. (FYI, here the macro that gives me the Julian date: macro InsertJulianDate() { int y, m, d, j; GetDate(y, m, d); j = d - 32075 + 1461 *(y + 4800 + (m - 14)/12)/4 + 367* (m -2 - (m - 14)/12*12)/12 - 3*((y + 4900 + (m - 14)/12)/100)/4; PutInt(j); } Now I just need the time too. Thanks!) -- Vandija Sanoth ) |
|
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
SR time dilation on remote objects ? | Marcel Luttgens | Astronomy Misc | 560 | September 30th 04 12:59 AM |
formula for RA and declin of real sun, from geog coords and time? | Neil Fernandez | Astronomy Misc | 10 | May 3rd 04 08:35 PM |
PDF (Planetary Distance Formula) explains DW 2004 / Quaoar and Kuiper Belt | hermesnines | Astronomy Misc | 10 | February 27th 04 02:14 AM |
Limiting Magnitude in Binoculars | edz | Amateur Astronomy | 52 | October 9th 03 09:59 PM |