It works for me:

2003-05-10T06:13:00

(I had to manually remove the old DT::E:Sunrise installation,
don't know why)

- Flavio S. Glock


Hill, Ronald wrote:
> Can someone test this script below using the sunrise module
> that is located in CVS?
> 
> Please advise!
> 
> Ron Hill
> 
> use strict;
> use warnings;
> use DateTime;
> use Datetime::Event::Sunrise;
> 
> my $dt = DateTime->new(year => 2003,
>                        month =>05,
>                        day   =>10,
>                       );
> 
> my $sunrise = DateTime::Event::Sunrise  ->sunrise(
>                        longitude   => 114.18,
>                        latitude    => 22.33,
>                       );
> 
> my $rise= $sunrise->current($dt);
> 
> $rise->set_time_zone('Asia/Hong_Kong');
> 
> print $rise->datetime;

Reply via email to