Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Astro::Sunrise error

by thunders (Priest)
on Jun 17, 2009 at 04:25 UTC ( [id://772221]=note: print w/replies, xml ) Need Help??


in reply to Astro::Sunrise error

It seems to be an error in the Module's recently added iterator feature, it's definitely worth filing a bug. I found that if I leave off the last argument to sunrise, I get an answer for that date.
($sunrise, $sunset)=sunrise($y,$m,$d,$long,$lati,$Zone,$DST,$ALT); 07:51 19:52
That seems to be about three minutes off for both sunrise and sunset from what I get at this page: http://aa.usno.navy.mil/data/docs/RS_OneDay.php

Assuming that site is correct, it may still be close enough for your purposes.

Update: corrected some numbers above.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2026-02-07 23:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.