Main > Free Download Search >

Free datetime event sunrise 0.0501 software for linux

datetime event sunrise 0.0501

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 1093
DateTime::Event::Sunrise 0.0501

DateTime::Event::Sunrise 0.0501


DateTime::Event::Sunrise is a Perl DateTime extension for computing the sunrise/sunset on a given day. more>>
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";

<<less
Download (0.012MB)
Added: 2007-02-15 License: Perl Artistic License Price:
981 downloads
DateTime::Astro::Sunrise 0.01_01

DateTime::Astro::Sunrise 0.01_01


DateTime::Astro::Sunrise is a Perl DateTime extension for computing the sunrise/sunset on a given day. more>>
DateTime::Astro::Sunrise is a Perl DateTime extension for computing the sunrise/sunset on a given day.

SYNOPSIS

use DateTime; use DateTime::Astro::Sunrise; ^

my $dt = DateTime->new( year => 2000,
month => 6,
day => 20,
);
my $sunrise = DateTime::Astro::Sunrise ->new(-118,33,undef,1);
my ($tmp_rise, $tmp_set) = $sunrise->sunrise($dt);

This module will return a DateTime Object for sunrise and sunset for a given day.

USAGE

my $sunrise = DateTime::Astro::Sunrise -new(longitutide,latatude,ALT,Iteration);>
inter is set to either 0 or 1. If set to 0 no Iteration will occur. If set to 1 Iteration will occur. Default is 0.
There are a number of sun altitides to chose from. The default is -0.833 because this is what most countries use. Feel free to specify it if you need to. Here is the list of values to specify altitude (ALT) with:

0 degrees

Center of Suns disk touches a mathematical horizon

-0.25 degrees

Suns upper limb touches a mathematical horizon

-0.583 degrees

Center of Suns disk touches the horizon; atmospheric refraction accounted for

-0.833 degrees

Suns supper limb touches the horizon; atmospheric refraction accounted for

-6 degrees

Civil twilight (one can no longer read outside without artificial illumination)

-12 degrees

Nautical twilight (navigation using a sea horizon no longer possible)

-15 degrees

Amateur astronomical twilight (the sky is dark enough for most astronomical observations)

-18 degrees

Astronomical twilight (the sky is completely dark)

Notes on Iteration

The orginal method only gives an approximate value of the Suns rise/set times. The error rarely exceeds one or two minutes, but at high latitudes, when the Midnight Sun soon will start or just has ended, the errors may be much larger. If you want higher accuracy, you must then use the iteration feature. This feature is new as of version 0.7. Here is what I have tried to accomplish with this.

a) Compute sunrise or sunset as always, with one exception: to convert LHA from degrees to hours, divide by 15.04107 instead of 15.0 (this accounts for the difference between the solar day and the sidereal day.
b) Re-do the computation but compute the Suns RA and Decl, and also GMST0, for the moment of sunrise or sunset last computed.
c) Iterate b) until the computed sunrise or sunset no longer changes significantly. Usually 2 iterations are enough, in rare cases 3 or 4 iterations may be needed.

($sunrise, $sunset) = $sunrise->($dt);

Returns two DateTime objects sunrise and sunset. Please note that the time zone for these objects is set to UTC. So dont forget to set your timezone!!

<<less
Download (0.006MB)
Added: 2007-02-15 License: GPL (GNU General Public License) Price:
983 downloads
DateTime::Event::Cron 0.07

DateTime::Event::Cron 0.07


DateTime::Event::Cron is a DateTime extension for generating recurrence sets from crontab lines and files. more>>
DateTime::Event::Cron is a DateTime extension for generating recurrence sets from crontab lines and files.

SYNOPSIS

use DateTime::Event::Cron;

# DateTime::Set construction from crontab line
$crontab = */3 15 1-10 3,4,5 */2;
$set = DateTime::Event::Cron->from_cron($crontab);
$iter = $set->iterator(after => DateTime->now);
while (1) {
my $next = $iter->next;
my $now = DateTime->now;
sleep(($next->subtract_datetime_absolute($now))->seconds);
# do stuff...
}

# List of DateTime::Set objects from crontab file
@sets = DateTime::Event::Cron->from_crontab(file => /etc/crontab);
$now = DateTime->now;
print "Now: ", $now->datetime, "n";
foreach (@sets) {
my $next = $_->next($now);
print $next->datetime, "n";
}

# DateTime::Set parameters
$crontab = * * * * *;

$now = DateTime->now;
%set_parms = ( after => $now );
$set = DateTime::Event::Cron->from_cron(cron => $crontab, %set_parms);
$dt = $set->next;
print "Now: ", $now->datetime, " and next: ", $dt->datetime, "n";

# Spans for DateTime::Set
$crontab = * * * * *;
$now = DateTime->now;
$now2 = $now->clone;
$span = DateTime::Span->from_datetimes(
start => $now->add(minutes => 1),
end => $now2->add(hours => 1),
);
%parms = (cron => $crontab, span => $span);
$set = DateTime::Event::Cron->from_cron(%parms);
# ...do things with the DateTime::Set

# Every RTFCT relative to 12am Jan 1st this year
$crontab = 7-10 6,12-15 10-28/2 */3 3,4,5;
$date = DateTime->now->truncate(to => year);
$set = DateTime::Event::Cron->from_cron(cron => $crontab, after => $date);

# Rather than generating DateTime::Set objects, next/prev
# calculations can be made directly:

# Every day at 10am, 2pm, and 6pm. Reference date
# defaults to DateTime->now.
$crontab = 10,14,18 * * * *;
$dtc = DateTime::Event::Cron->new_from_cron(cron => $crontab);
$next_datetime = $dtc->next;
$last_datetime = $dtc->previous;
...

# List of DateTime::Event::Cron objects from
# crontab file
@dtc = DateTime::Event::Cron->new_from_crontab(file => /etc/crontab);

# Full cron lines with user, such as from /etc/crontab
# or files in /etc/cron.d, are supported and auto-detected:
$crontab = * * * * * gump /bin/date;
$dtc = DateTime::Event::Cron->new(cron => $crontab);

# Auto-detection of users is disabled if you explicitly
# enable/disable via the user_mode parameter:
$dtc = DateTime::Event::Cron->new(cron => $crontab, user_mode => 1);
my $user = $dtc->user;
my $command = $dtc->command;

# Unparsed original cron entry
my $original = $dtc->original;

<<less
Download (0.010MB)
Added: 2007-05-16 License: Perl Artistic License Price:
891 downloads
DateTime::Precise 1.05

DateTime::Precise 1.05


DateTime::Precise can perform common time and date operations with additional GPS operations. more>>
DateTime::Precise can perform common time and date operations with additional GPS operations.

SYNOPSIS

use DateTime::Precise;

use DateTime::Precise qw(:TimeVars);

# Constructors and ways to set time.
$t1 = DateTime::Precise->new;
$t2 = DateTime::Precise->new(1998. 4. 3 12:13:44.054);
$t3 = DateTime::Precise->new(time() - 100.23456);
$t4 = DateTime::Precise->new(1998.04.24);
$t1->set_localtime_from_epoch_time;
$t1->set_gmtime_from_epoch_time(time + 120.987);
$t1->set_from_datetime(1998.03.23 16:58:14.65);
$t1->set_time(YDHMS, 1998, 177, 9, 15, 26.5);

# This is the same as $d3->set_from_datetime(...)
$t3->dscanf("%^Y.%M.%D %h:%m:%s", "1998.03.25 20:25:23");
if ($msg = $d1->dscanf("%~M", $input)) {
print "error: $msgn";
print "Must enter a three-letter month abbrev.n";
}

# Get different parts of the time.
$year = $t3->year;
$month = $t3->month;
$day = $t3->day;
$hours = $t3->hours;
$minutes = $t3->minutes;
$seconds = $t3->seconds;
($year, $day_of_year) = $t3->get_time(Yj);

# Print times and dates.
print $t2->asctime;
print $t2->strftime(%T %C%n);
print $t2->dprintf("%^Y.%M.%D %h:%m:%s"); # datetime
print $t2->dprintf("%~w %~M %-D %h:%m:%s CST %^Y"); # ctime

# Copy times.
my $t4 = $t2->copy;

# Set one time object to the same time as another: set $t3 equal to $t2.
$t3->clone($t2);

# Find the difference between two times.
$secs_from_midnight = $t4 - $t1;
$secs_from_midnight = $t4->diff($t1);

# Add seconds, days, months, etc to time.
$t1 = $t4 + 3600; # $t1 is now an hour after midnight
$t1->inc_month(2); # add two months to $t1
$t1->floor_month; # set $t1 to the first of the month
$t1 -= 0.25; # subtract 1/4 of a second from $t1

# Can compare and sort DateTime::Precise.
print "Its late!!!" if ($t1 > $t4);
@sorted = sort @birthdays; # normal comparisons work fine

# Get the GPS weeks, seconds and day.
$gps_week = $t1->gps_week;
$gps_seconds = $t1->gps_seconds;
$gps_day = $t1->gps_day;
($gps_week, $gps_seconds, $gps_day) = $t1->gps_week_seconds_day;

<<less
Download (0.034MB)
Added: 2007-08-09 License: Perl Artistic License Price:
807 downloads
TigerEvents 0.7.1

TigerEvents 0.7.1


TigerEvents is a web-based event announcement system. more>>
TigerEvents is a novel, Web-based event announcement system for promoting upcoming and ongoing events to large communities such as university campuses, companies, or the general public.
Enhancements:
- This release has several bugfixes and enhancements.
- New to this release is the exporting of several calendar formats, including iCal, hCal, and being able to import events into Google Calendar.
<<less
Download (1.9MB)
Added: 2007-01-25 License: GPL (GNU General Public License) Price:
1003 downloads
Xfce 4 Datetime Plugin 0.5.0

Xfce 4 Datetime Plugin 0.5.0


Xfce 4 Datetime Plugin shows the date and time in the panel, and a calendar appears when you left-click on it. more>> <<less
Download (0.36MB)
Added: 2007-03-06 License: GPL (GNU General Public License) Price:
962 downloads
DateTime::Calendar::Mayan 0.0601

DateTime::Calendar::Mayan 0.0601


DateTime::Calendar::Mayan is a Perl module with the Mayan Long Count, Haab, and Tzolkin calendars. more>>
DateTime::Calendar::Mayan is a Perl module with the Mayan Long Count, Haab, and Tzolkin calendars.

SYNOPSIS

use DateTime::Calendar::Mayan

my $dtcm = DateTime::Calendar::Mayan->new(
baktun => 12,
katun => 19,
tun => 10,
uinal => 2,
kin => 8,
# alternate epoch
epoch => DateTime->new(
year => -3113,
month => 8,
day => 13,
),
);

print $dtcm->date;
# prints 12.19.10.2.8
print $dtcm->haab;
# prints 3 Uayeb
print $dtcm->tzolkin;
# prints 3 Oc

An implementation of the Mayan Long Count, Haab, and Tzolkin calendars as defined in "Calendrical Calculations The Millennium Edition". Supplemented by "Frequently Asked Questions about Calendars".

<<less
Download (0.016MB)
Added: 2007-05-16 License: Perl Artistic License Price:
909 downloads
DateTime::Calendar::Hebrew 0.04

DateTime::Calendar::Hebrew 0.04


DateTime::Calendar::Hebrew is a Perl module with dates in the Hebrew calendar. more>>
DateTime::Calendar::Hebrew is a Perl module with dates in the Hebrew calendar.

SYNOPSIS

use DateTime::Calendar::Hebrew;

$dt = DateTime::Calendar::Hebrew->new( year => 5782,
month => 10,
day => 4 );

DateTime::Calendar::Hebrew is the implementation of the Hebrew calendar. Read on for more details on the Hebrew calendar.

<<less
Download (0.019MB)
Added: 2006-12-05 License: Perl Artistic License Price:
1055 downloads
DateTime::TimeZone::Tzfile 0.000

DateTime::TimeZone::Tzfile 0.000


DateTime::TimeZone::Tzfile is a Perl module that contains tzfile (zoneinfo) timezone files. more>>
DateTime::TimeZone::Tzfile is a Perl module that contains tzfile (zoneinfo) timezone files.

SYNOPSIS

use DateTime::TimeZone::Tzfile;

$tz = DateTime::TimeZone::Tzfile->new("/etc/localtime");

if($tz->is_floating) { ...
if($tz->is_utc) { ...
if($tz->is_olson) { ...
$category = $tz->category;
$tz_string = $tz->name;

if($tz->has_dst_changes) { ...
if($tz->is_dst_for_datetime($dt)) { ...
$offset = $tz->offset_for_datetime($dt);
$abbrev = $tz->short_name_for_datetime($dt);
$offset = $tz->offset_for_local_datetime($dt);

An instance of this class represents a timezone that was encoded in a file in the tzfile(5) format. These can express arbitrary patterns of offsets from Universal Time, changing over time. Offsets and change times are limited to a resolution of one second.

This class implements the DateTime::TimeZone interface, so that its instances can be used with DateTime objects.

<<less
Download (0.010MB)
Added: 2007-05-17 License: Perl Artistic License Price:
893 downloads
DateTime 0.37

DateTime 0.37


DateTime is a date and time object. more>>
DateTime is a date and time object.

SYNOPSIS

use DateTime;

$dt = DateTime->new( year => 1964,
month => 10,
day => 16,
hour => 16,
minute => 12,
second => 47,
nanosecond => 500000000,
time_zone => Asia/Taipei,
);

$dt = DateTime->from_epoch( epoch => $epoch );
$dt = DateTime->now; # same as ( epoch => time() )

$year = $dt->year;
$month = $dt->month; # 1-12 - also mon

$day = $dt->day; # 1-31 - also day_of_month, mday

$dow = $dt->day_of_week; # 1-7 (Monday is 1) - also dow, wday

$hour = $dt->hour; # 0-23
$minute = $dt->minute; # 0-59 - also min

$second = $dt->second; # 0-61 (leap seconds!) - also sec

$doy = $dt->day_of_year; # 1-366 (leap years) - also doy

$doq = $dt->day_of_quarter; # 1.. - also doq

$qtr = $dt->quarter; # 1-4

# all of the start-at-1 methods above have correponding start-at-0
# methods, such as $dt->day_of_month_0, $dt->month_0 and so on

$ymd = $dt->ymd; # 2002-12-06
$ymd = $dt->ymd(/); # 2002/12/06 - also date

$mdy = $dt->mdy; # 12-06-2002
$mdy = $dt->mdy(/); # 12/06/2002

$dmy = $dt->dmy; # 06-12-2002
$dmy = $dt->dmy(/); # 06/12/2002

$hms = $dt->hms; # 14:02:29
$hms = $dt->hms(!); # 14!02!29 - also time

$is_leap = $dt->is_leap_year;

# these are localizable, see Locales section
$month_name = $dt->month_name; # January, February, ...
$month_abbr = $dt->month_abbr; # Jan, Feb, ...
$day_name = $dt->day_name; # Monday, Tuesday, ...
$day_abbr = $dt->day_abbr; # Mon, Tue, ...

$epoch_time = $dt->epoch;
# may return undef if the datetime is outside the range that is
# representable by your OSs epoch system.

$dt2 = $dt + $duration_object;

$dt3 = $dt - $duration_object;

$duration_object = $dt - $dt2;

$dt->set( year => 1882 );

$dt->set_time_zone( America/Chicago );

$dt->set_formatter( $formatter );

DateTime is a class for the representation of date/time combinations, and is part of the Perl DateTime project. For details on this project please see http://datetime.perl.org/. The DateTime site has a FAQ which may help answer many "how do I do X?" questions. The FAQ is at http://datetime.perl.org/faq.html.

It represents the Gregorian calendar, extended backwards in time before its creation (in 1582). This is sometimes known as the "proleptic Gregorian calendar". In this calendar, the first day of the calendar (the epoch), is the first day of year 1, which corresponds to the date which was (incorrectly) believed to be the birth of Jesus Christ.

The calendar represented does have a year 0, and in that way differs from how dates are often written using "BCE/CE" or "BC/AD".

For infinite datetimes, please see the DateTime::Infinite module.

<<less
Download (0.093MB)
Added: 2007-05-16 License: GPL (GNU General Public License) Price:
893 downloads
DateTime::TimeZone::SystemV 0.000

DateTime::TimeZone::SystemV 0.000


DateTime::TimeZone::SystemV is a Perl module with System V and POSIX timezone strings. more>>
DateTime::TimeZone::SystemV is a Perl module with System V and POSIX timezone strings.

SYNOPSIS

use DateTime::TimeZone::SystemV;

$tz = DateTime::TimeZone::SystemV->new("EST5EDT");

if($tz->is_floating) { ...
if($tz->is_utc) { ...
if($tz->is_olson) { ...
$category = $tz->category;
$tz_string = $tz->name;

if($tz->has_dst_changes) { ...
if($tz->is_dst_for_datetime($dt)) { ...
$offset = $tz->offset_for_datetime($dt);
$abbrev = $tz->short_name_for_datetime($dt);
$offset = $tz->offset_for_local_datetime($dt);

An instance of this class represents a timezone that was specified by means of a System V timezone string or the POSIX extended form of the same syntax. These can express a plain offset from Universal Time, or a system of two offsets (standard and daylight saving time) switching on a yearly cycle according to certain types of rule.

This class implements the DateTime::TimeZone interface, so that its instances can be used with DateTime objects.

<<less
Download (0.008MB)
Added: 2007-05-17 License: Perl Artistic License Price:
891 downloads
Liquid Sunrise 0.2

Liquid Sunrise 0.2


Liquid Sunrise is a SuperKaramba theme for people who want to monitor sunrise and sundown. more>>
Liquid Sunrise is a SuperKaramba theme for people who want to monitor sunrise and sundown without having to (wake up and) look out of the window. Ideal for photographers for planning phototours.

If you want to use a background picture (e.g. included bg.png or bg2.png) just edit line 2 in the theme file: bg.png is activated by default in the German version, bg2.png in the English version as example.

Image of morning and evening sun is taken from liquid weather theme Kapsules, meridian sun is from default liquid theme.

Based on the Crystal Sunrise Theme by Daniel Pathmaperuma (http://www.kde-look.org/content/show.php/crystal_sunrise?content=54805) which is based on sunrise-theme by Flavio Cardone (http://www.kde-look.org/content/show.php/sunrise?content=25030) - an even more shameless port ;).

This theme needs the sunwait application: http://www.risacher.org/sunwait/

BTW: If you are looking for a french version: chepioq has adapted my theme:
http://www.kde-look.org/content/show.php/liquid+sunrise+french?content=55332

<<less
Download (0.033MB)
Added: 2007-04-03 License: GPL (GNU General Public License) Price:
937 downloads
DateTime::Cron::Simple 0.2

DateTime::Cron::Simple 0.2


DateTime::Cron::Simple is a Perl module that can parse a cron entry and check against current time. more>>
DateTime::Cron::Simple is a Perl module that can parse a cron entry and check against current time.

SYNOPSIS

use DateTime::Cron::Simple;

$c = DateTime::Cron::Simple->new($cron);

$boolean = $c->validate_time;

$c->new_cron($cron);

This module is a quick and dirty way to determine if a cron time format is valid for the current date and time.

A cron entry follows the cron format from crontab(5).

The validate_time function uses the current date and time for comparison, but will also accept a valid DateTime object as a parameter.

EXAMPLE

use DateTime::Cron::Simple;

$c = DateTime::Cron::Simple->new(0-59/2 10,12 * * 5);

if($c->validate_time) { ... }

$c->new_cron(* * 1 * 0);

if($c->validate_time) { ... }

<<less
Download (0.003MB)
Added: 2006-12-20 License: Perl Artistic License Price:
1041 downloads
Rose::DateTime::Util 0.532

Rose::DateTime::Util 0.532


Rose::DateTime::Util Perl module contains some simple DateTime wrapper functions. more>>
Rose::DateTime::Util Perl module contains some simple DateTime wrapper functions.

SYNOPSIS

use Rose::DateTime::Util qw(:all);

$now = parse_date(now);
$then = parse_date(12/25/2001 11pm);

print $now->day_of_week; # e.g., "Monday"

# "December 25th 2001 at 11:00:00 PM"
$date_text = format_date($then, "%B %E %Y at %t");

EXPORTS

Rose::DateTime::Util does not export any function names by default.

The all tag:

use Rose::DateTime::Util qw(:all);

will cause the following function names to be imported:

format_date()
parse_date()
parse_epoch()
parse_european_date()

CLASS METHODS

error

Returns a message describing the last error that occurred.

european_dates [BOOL]

Get or set a boolean flag that determines how "xx/xx/xxxx" dates are parsed by the parse_date function. If set to a false-but-defined value, then such dates are parsed as "mm/dd/yyyy". If set to true, then theyre parsed as "dd/mm/yyyy". If set to undef, then the attribute resets to its initial value, which is determined as described below.

The initial value of this attribute is chosen based on the current locale as stored in DateTimes DefaultLocale setting. This initial value is looked up only once. Any subsequent changes to DateTimes DefaultLocale setting will be ignored until/unless this attribute is reset to undef.

time_zone [TZ]

Get or set the default time zone. This value is passed to DateTime->new(...) as the value of the time_zone parameter when parse_date() creates the DateTime object that it returns. The default value is "floating".

<<less
Download (0.012MB)
Added: 2007-07-24 License: Perl Artistic License Price:
822 downloads
DateTime::Format::Excel 0.2901

DateTime::Format::Excel 0.2901


DateTime::Format::Excel is a Perl module that can convert between DateTime and Excel dates. more>>
DateTime::Format::Excel is a Perl module that can convert between DateTime and Excel dates.

SYNOPSIS

use DateTime::Format::Excel;

# From Excel via class method:

my $datetime = DateTime::Format::Excel->parse_datetime( 37680 );
print $datetime->ymd(.); # 2003.02.28

# or via an object

my $excel = DateTime::Format::Excel->new();
print $excel->parse_datetime( 25569 )->ymd; # 1970-01-01

# Back to Excel number:

use DateTime;
my $dt = DateTime->new( year => 1979, month => 7, day => 16 );
my $daynum = DateTime::Format::Excel->format_datetime( $dt );
print $daynum; # 29052

# or via an object
my $other_daynum = $excel->format_datetime( $dt );
print $other_daynum; # 29052

Excel uses a different system for its dates than most Unix programs. This module allows you to convert between a few of the Excel raw formats and DateTime objects, which can then be further converted via any of the other DateTime::Format::* modules, or just with DateTimes methods.

If you happen to be dealing with dates between 1 Jan 1900 and 1 Mar 1900 please read the notes on epochs.

If youre wanting to handle actual spreadsheet files, you may find Spreadsheet::WriteExcel and Spreadsheet::ParseExcel of use.

<<less
Download (0.015MB)
Added: 2006-08-15 License: Perl Artistic License Price:
1169 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5