A Space & astronomy forum. SpaceBanter.com

Go Back   Home » SpaceBanter.com forum » Others » Misc
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

Formula for calculating Julian Dates



 
 
Thread Tools Display Modes
  #1  
Old September 14th 03, 09:33 AM
Vandija Sanoth
external usenet poster
 
Posts: n/a
Default Formula for calculating Julian Dates

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  
Old September 14th 03, 10:52 AM
Painius
external usenet poster
 
Posts: n/a
Default

"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  
Old September 14th 03, 10:52 AM
Painius
external usenet poster
 
Posts: n/a
Default

"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  
Old September 14th 03, 02:11 PM
G.P
external usenet poster
 
Posts: n/a
Default


"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  
Old September 14th 03, 02:11 PM
G.P
external usenet poster
 
Posts: n/a
Default


"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  
Old September 14th 03, 03:01 PM
Martin
external usenet poster
 
Posts: n/a
Default

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  
Old September 14th 03, 03:01 PM
Martin
external usenet poster
 
Posts: n/a
Default

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  
Old September 14th 03, 07:07 PM
Vandija Sanoth
external usenet poster
 
Posts: n/a
Default

["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  
Old September 14th 03, 07:07 PM
Vandija Sanoth
external usenet poster
 
Posts: n/a
Default

["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  
Old September 14th 03, 10:26 PM
Vandija Sanoth
external usenet poster
 
Posts: n/a
Default

["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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 08:02 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 SpaceBanter.com.
The comments are property of their posters.