How: Set Time (not just date) in Script?

General discussion about Celestia that doesn't fit into other forums.
Topic author
don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 5 months
Location: Colorado, USA (7000 ft)

How: Set Time (not just date) in Script?

Post #1by don » 12.07.2003, 23:52

Hello,

As many others are, I too am new to Celestia. Thank you team, for writing and enhancing it! I love it!

I would like to set a specific time via a script, but the Time function appears to be for setting the date (Julian day) only. Maybe this function should be renamed to SetDate, and a SetTime function added?

The cmdparser code shows only a single number is passed [getNumber("jd", jd);], so that means there is no separator in the jd parameter for a time value, correct?

So, how do I set a specific time of day, to something other than the default value of 12:00:00 UTC which is set when the Time (actually a Date) function is executed?

Thank you!

-Don

-Shadow-
Posts: 156
Joined: 18.04.2003
With us: 21 years 7 months
Location: Warbird D'Kara - Recreational area

Post #2by -Shadow- » 12.07.2003, 23:59

I don't know about scripting, but you can set the time through Celestia to be synchronized with your computer.If you want to set it with a script for fun etc., then a member who has more knowledge then I on scripting will most likely reply to your thread :)
BTW Welcome to the boards :)

- Shadow
Image

"Certain it is and sure: love burns, ale burns, fire burns, politics burns, but cold were life without them." - Romulan proverb

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

Post #3by don » 13.07.2003, 00:01

Think I just found out ... using the decimal place, and then a very long number (seconds?). I'll get it figured out yet (smile). Finally found a calendar date to Julian Day converter, now I need to do some more conversion for time.

-Don


Return to “Celestia Users”