Enter Calendar Date -- Displays Julian Date

All about writing scripts for Celestia in Lua and the .cel system
Topic author
don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Enter Calendar Date -- Displays Julian Date

Post #1by don » 20.04.2004, 00:28

This script allows you to enter a calendar date and then displays that date converted to a Julian Date for you.

UPDATE: Short-lived script! :lol:

It's replacement now does both, Calendar and Julian date conversions: http://shatters.net/forum/viewtopic.php?t=4901.

Thanks Oni!
Last edited by don on 20.04.2004, 19:53, edited 1 time in total.
-Don G.
My Celestia Scripting Resources page

Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.

Oni

Julian to Calendar?

Post #2by Oni » 20.04.2004, 06:07

Hi Don,

Thanks for that conversion utility!! Just curious, will it also convert Julian to Calendar? Might be handy to have that as well :-)

Topic author
don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Post #3by don » 20.04.2004, 19:51

Hi Oni,

Well, it didn't, but why not? Here is it's replacement ... http://shatters.net/forum/viewtopic.php?t=4901
-Don G.

My Celestia Scripting Resources page



Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.

Oni

Now you're cooking!

Post #4by Oni » 20.04.2004, 21:11

Thanks so much Don!!

Sorry you had to rewrite your script, but it is always good for a conversion utility to be able to convert both ways :-) I've had many occasions where I only had the Julian date and needed to convert to Calendar, now I can much easier....Thanks!! Keep those great utilities coming!

Topic author
don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Post #5by don » 20.04.2004, 22:24

You're welcome Oni, and you are absolutely right -- convert both ways.

It's not really a re-write, as I only added the other conversion. Since it does both, I decided to rename the script. :D
-Don G.

My Celestia Scripting Resources page



Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.

Bob Hegwood
Posts: 1048
Joined: 19.10.2003
With us: 21 years 1 month
Location: Germantown, Ohio - USA

Post #6by Bob Hegwood » 21.04.2004, 04:09

Hey, a CELX script that actually does what it's supposed to do... :wink:

Thanks, Don. Now I can get rid of the other three converters I had to get to
figure out which date I wanted. :lol:

Take care, Bob
Bob Hegwood
Windows XP-SP2, 256Meg 1024x768 Resolution
Intel Celeron 1400 MHz CPU
Intel 82815 Graphics Controller
OpenGL Version: 1.1.2 - Build 4.13.01.3196
Celestia 1.4.0 Pre6 FT1

Topic author
don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Post #7by don » 21.04.2004, 04:45

Thanks Bob. Glad it helps out!

The funny part is that it doesn't even do anything in or for Celestia, except to help the person trying to do something in Celestia. Strange.
-Don G.

My Celestia Scripting Resources page



Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.

ElPelado
Posts: 862
Joined: 07.04.2003
With us: 21 years 7 months
Location: Born in Argentina
Contact:

Post #8by ElPelado » 21.04.2004, 12:51

I always used thsi page to convert:
http://aa.usno.navy.mil/data/docs/JulianDate.html
---------X---------
EL XENTENARIO
1905-2005

My page:
http://www.urielpelado.com.ar
My Gallery:
http://www.celestiaproject.net/gallery/view_al ... y-Universe


Return to “Scripting”