DateTime::Event::Sunrise 0.0501
Sponsored Links
DateTime::Event::Sunrise 0.0501 Ranking & Summary
File size:
0.012 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
981
Date added:
2007-02-15
Publisher:
Ron Hill
DateTime::Event::Sunrise 0.0501 description
DateTime::Event::Sunrise is a Perl DateTime extension for computing the sunrise/sunset on a given day.
SYNOPSIS
use DateTime;
use DateTime::Event::Sunrise;
my $dt = DateTime->new( year => 2000,
month => 6,
day => 20,
);
my $sunrise = DateTime::Event::Sunrise ->sunrise (
longitude =>-118,
latitude =>33,
altitude => -0.833,
iteration => 1
);
my $sunset = DateTime::Event::Sunrise ->sunset (
longitude =>-118,
latitude =>33,
altitude => -0.833,
iteration => 1
);
my $tmp_rise = $sunrise->next( $dt );
my $dt2 = DateTime->new( year => 2000,
month => 12,
day => 31,
);
# iterator
my $dt_span = DateTime::Span->new( start =>$dt1, end=>$dt2 );
my $set = $sunrise->intersection($dt_span);
my $iter = $set->iterator;
while ( my $dt = $iter->next ) {
print ,$dt->datetime;
}
# is it day or night?
my $day_set = DateTime::SpanSet->from_sets(
start_set => $sunrise, end_set => $sunset );
print $day_set->contains( $dt ) ? day : night;
my $dt = DateTime->new( year => 2000, month => 6, day => 20, time_zone => America/Los_Angeles, );
my $sunrise = DateTime::Event::Sunrise ->new( longitude =>-118 , latitude => 33, altitude => -0.833, iteration => 1
);
my $tmp = $sunrise->sunrise_sunset_span($dt); print "Sunrise is:" , $tmp->start->datetime , "n"; print "Sunset is:" , $tmp->end->datetime;
my $dt1 = $sunrise->sunrise_datetime( $dt ); print "Sunrise is:" , $dt1->datetime , "n"; my $dt2 = $sunrise->sunset_datetime( $dt ); print "Sunset is:" , $dt2->datetime , "n";
SYNOPSIS
use DateTime;
use DateTime::Event::Sunrise;
my $dt = DateTime->new( year => 2000,
month => 6,
day => 20,
);
my $sunrise = DateTime::Event::Sunrise ->sunrise (
longitude =>-118,
latitude =>33,
altitude => -0.833,
iteration => 1
);
my $sunset = DateTime::Event::Sunrise ->sunset (
longitude =>-118,
latitude =>33,
altitude => -0.833,
iteration => 1
);
my $tmp_rise = $sunrise->next( $dt );
my $dt2 = DateTime->new( year => 2000,
month => 12,
day => 31,
);
# iterator
my $dt_span = DateTime::Span->new( start =>$dt1, end=>$dt2 );
my $set = $sunrise->intersection($dt_span);
my $iter = $set->iterator;
while ( my $dt = $iter->next ) {
print ,$dt->datetime;
}
# is it day or night?
my $day_set = DateTime::SpanSet->from_sets(
start_set => $sunrise, end_set => $sunset );
print $day_set->contains( $dt ) ? day : night;
my $dt = DateTime->new( year => 2000, month => 6, day => 20, time_zone => America/Los_Angeles, );
my $sunrise = DateTime::Event::Sunrise ->new( longitude =>-118 , latitude => 33, altitude => -0.833, iteration => 1
);
my $tmp = $sunrise->sunrise_sunset_span($dt); print "Sunrise is:" , $tmp->start->datetime , "n"; print "Sunset is:" , $tmp->end->datetime;
my $dt1 = $sunrise->sunrise_datetime( $dt ); print "Sunrise is:" , $dt1->datetime , "n"; my $dt2 = $sunrise->sunset_datetime( $dt ); print "Sunset is:" , $dt2->datetime , "n";
DateTime::Event::Sunrise 0.0501 Screenshot
Advertisements
DateTime::Event::Sunrise 0.0501 Keywords
DateTime
Sunrise 0.0501
Perl DateTime
given day
day
dt
sunrise
sunset
print
new
DateTime::Event::Sunrise
DateTimeEventSunrise
DateTime::Event::Sunrise 0.0501
Libraries
Programming
Bookmark DateTime::Event::Sunrise 0.0501
DateTime::Event::Sunrise 0.0501 Copyright
WareSeeker periodically updates pricing and software information of DateTime::Event::Sunrise 0.0501 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of DateTime::Event::Sunrise 0.0501 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
DateTime::Astro::Sunrise is a Perl DateTime extension for computing the sunrise/sunset on a given day. Free Download
DateTime::Event::Cron is a DateTime extension for generating recurrence sets from crontab lines and files. Free Download
DateTime::Precise can perform common time and date operations with additional GPS operations. Free Download
Xfce 4 Datetime Plugin shows the date and time in the panel, and a calendar appears when you left-click on it. Free Download
DateTime::Calendar::Mayan is a Perl module with the Mayan Long Count, Haab, and Tzolkin calendars. Free Download
DateTime::Calendar::Hebrew is a Perl module with dates in the Hebrew calendar. Free Download
DateTime is a date and time object. Free Download
DateTime::TimeZone::Tzfile is a Perl module that contains tzfile (zoneinfo) timezone files. Free Download
Latest Software
Popular Software
Favourite Software