Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Locationg celestial objects (using Astro::Coords, if need be)

by jandrew (Hermit)
on Oct 25, 2012 at 22:20 UTC ( #1000955=note: print w/ replies, xml ) Need Help??


in reply to Locationg celestial objects (using Astro::Coords, if need be)

schweini Your variance sounds suspiciously like you have a floating timezone in your date object. DateTime defaults to a floating timezone. I don't have any experience with Time::Piece but the Astro::Coords documentation uses DateTime and explicitly sets the timezone on date object creation. Astro::Coords source appears to attempt to convert your time object to UTC prior to calculating celestial coordinates. Timezone conversion requires a defined timezone in the DateTime object (floating time zones don't convert).

See the documentation for "Floating DateTimes" in DateTime for more information


Comment on Re: Locationg celestial objects (using Astro::Coords, if need be)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1000955]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2015-07-29 10:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls