perl datetime
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 4329
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.
<<lessSYNOPSIS
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.
Download (0.093MB)
Added: 2007-05-16 License: GPL (GNU General Public License) Price:
893 downloads
App::datetime 0.964
App::datetime is a date and time considerations. more>>
App::datetime is a date and time considerations.
Most Enterprise development includes processing of dates and times. There are many date and time modules on CPAN, and choosing the right one can be confusing. There are no special perl data types for dates and times, so some direction is needed.
The short answer is that we recommend the following for most common date and time operations.
Class::Date
Class::Date::Rel
However, other modules are appropriate in certain circumstances. So for the longer answer, read on.
PERL 5 LANGUAGE SUPPORT
The native Perl 5 datetime type is an integer. It is not different from other integers in any way other than how it is used. It represents the number of non-leap seconds since January 1, 1970 UTC (the "Epoch" at GMT). The following internal Perl function gets the current time.
$current_time = time;
$current_time = time();
Other Perl functions that return this "datetime" integer are
($dev, $ino, $mode, $nlink, $uid, $gid, $redev, $size,
$atime, $mtime, $ctime, $blksize, $blocks) = stat($filename);
($dev, $ino, $mode, $nlink, $uid, $gid, $redev, $size,
$atime, $mtime, $ctime, $blksize, $blocks) = lstat($filename);
where $atime, $mtime, and $ctime are the same kind of integers, representing the access time, modification time, and change time of a file.
These $time values may be converted to human-readable form using the following internal perl functions. (See the "perlfunc" man page for more information.)
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime($time);
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($time);
Furthermore, the current time zone needs to be accessed through the environment variable, "TZ".
$timezone = $ENV{TZ};
This leaves the Perl developer with lots of work to do in order to process dates.
Formatting dates for output
Parsing dates on input
Comparing dates
Date math (addition, subtraction)
Other calendar-specific functions (i.e. holidays, days of week, etc)
Numerous modules have been posted to CPAN allowing the Perl developer to accomplish these tasks. However, they have pros and cons related to the following features.
Internationalization
Speed
Portability
Ranges of Dates Supported
Compliance with Perl Styleguide (function naming)
<<lessMost Enterprise development includes processing of dates and times. There are many date and time modules on CPAN, and choosing the right one can be confusing. There are no special perl data types for dates and times, so some direction is needed.
The short answer is that we recommend the following for most common date and time operations.
Class::Date
Class::Date::Rel
However, other modules are appropriate in certain circumstances. So for the longer answer, read on.
PERL 5 LANGUAGE SUPPORT
The native Perl 5 datetime type is an integer. It is not different from other integers in any way other than how it is used. It represents the number of non-leap seconds since January 1, 1970 UTC (the "Epoch" at GMT). The following internal Perl function gets the current time.
$current_time = time;
$current_time = time();
Other Perl functions that return this "datetime" integer are
($dev, $ino, $mode, $nlink, $uid, $gid, $redev, $size,
$atime, $mtime, $ctime, $blksize, $blocks) = stat($filename);
($dev, $ino, $mode, $nlink, $uid, $gid, $redev, $size,
$atime, $mtime, $ctime, $blksize, $blocks) = lstat($filename);
where $atime, $mtime, and $ctime are the same kind of integers, representing the access time, modification time, and change time of a file.
These $time values may be converted to human-readable form using the following internal perl functions. (See the "perlfunc" man page for more information.)
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime($time);
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($time);
Furthermore, the current time zone needs to be accessed through the environment variable, "TZ".
$timezone = $ENV{TZ};
This leaves the Perl developer with lots of work to do in order to process dates.
Formatting dates for output
Parsing dates on input
Comparing dates
Date math (addition, subtraction)
Other calendar-specific functions (i.e. holidays, days of week, etc)
Numerous modules have been posted to CPAN allowing the Perl developer to accomplish these tasks. However, they have pros and cons related to the following features.
Internationalization
Speed
Portability
Ranges of Dates Supported
Compliance with Perl Styleguide (function naming)
Download (0.12MB)
Added: 2006-10-17 License: Perl Artistic License Price:
1102 downloads
Rose::DateTime 0.532
Rose::DateTime is a Perl module with DateTime helper functions and objects. more>>
Rose::DateTime is a Perl module with DateTime helper functions and objects.
SYNOPSIS
use Rose::DateTime::Util qw(:all);
$now = parse_date(now);
$then = parse_date(12/25/2001 6pm);
$date_text = format_date($then, "%D at %T %p");
...
use Rose::DateTime::Parser;
$parser = Rose::DateTime::Parser->new(time_zone => UTC);
$date = $parser->parse_date(12/25/1999);
The Rose::DateTime::* modules provide a few convenience functions and objects for use with DateTime dates.
Rose::DateTime::Util contains a simple date parser and a slightly customized date formatter.
Rose::DateTime::Parser encapsulates a date parser with an associated default time zone.
This module (Rose::DateTime) exists mostly to provide a version number for CPAN. See the individual modules for some actual documentation.
<<lessSYNOPSIS
use Rose::DateTime::Util qw(:all);
$now = parse_date(now);
$then = parse_date(12/25/2001 6pm);
$date_text = format_date($then, "%D at %T %p");
...
use Rose::DateTime::Parser;
$parser = Rose::DateTime::Parser->new(time_zone => UTC);
$date = $parser->parse_date(12/25/1999);
The Rose::DateTime::* modules provide a few convenience functions and objects for use with DateTime dates.
Rose::DateTime::Util contains a simple date parser and a slightly customized date formatter.
Rose::DateTime::Parser encapsulates a date parser with an associated default time zone.
This module (Rose::DateTime) exists mostly to provide a version number for CPAN. See the individual modules for some actual documentation.
Download (0.011MB)
Added: 2007-05-21 License: GPL (GNU General Public License) Price:
886 downloads
Perl OpenID 1.1
Perl OpenID is a perl module for verifying OpenID identities. more>>
Perl OpenID is a perl module for verifying OpenID identities.
Main features:
- asy-to-use API
- Does not depend on underlying web framework
- Extensive documentaion
- Ready-to-use store implementation
- Test suite
- Licensed under the LGPL
Enhancements:
- This release contains a tested, documented library with support for OpenID extensions and Yadis.
- There are examples for both the consumer and server.
<<lessMain features:
- asy-to-use API
- Does not depend on underlying web framework
- Extensive documentaion
- Ready-to-use store implementation
- Test suite
- Licensed under the LGPL
Enhancements:
- This release contains a tested, documented library with support for OpenID extensions and Yadis.
- There are examples for both the consumer and server.
Download (0.057MB)
Added: 2006-06-15 License: LGPL (GNU Lesser General Public License) Price:
1227 downloads
Perl Chat 0.1.1
http://perlchat.sourceforge.net more>>
Perl Chat is a project that consists of a client and a server, both written in perl.
The goal of this project is to create a chat server that can be used on smaller networks such as a college campus or a business network.
Both the client and the server are written in Perl, and the client uses the Tk module to generate its GUI.
Installation:
First of all you need a working version of Perl. Preferably 5.6 but 5.005X should also work fine. For versions of Perl Chat < 0.1.0 you will need to compile Perl with Threads. (Keep in mind that Threads are still experimental) I designed this program with Perl 5.6.0 which can be found HERE.
You will need to read the installation instructions to compile it with Threads. I advise anyone who is doing this to install this new version of perl into /usr/local/ so as to not overwrite your old perl. Then by changing the first line of the script you can toggle between the different installs of perl.
<<lessThe goal of this project is to create a chat server that can be used on smaller networks such as a college campus or a business network.
Both the client and the server are written in Perl, and the client uses the Tk module to generate its GUI.
Installation:
First of all you need a working version of Perl. Preferably 5.6 but 5.005X should also work fine. For versions of Perl Chat < 0.1.0 you will need to compile Perl with Threads. (Keep in mind that Threads are still experimental) I designed this program with Perl 5.6.0 which can be found HERE.
You will need to read the installation instructions to compile it with Threads. I advise anyone who is doing this to install this new version of perl into /usr/local/ so as to not overwrite your old perl. Then by changing the first line of the script you can toggle between the different installs of perl.
Download (0.036MB)
Added: 2006-09-19 License: GPL (GNU General Public License) Price:
1135 downloads
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
Lingua::ZH::DateTime 0.01
Lingua::ZH::DateTime is a Perl module to convert time to chinese format. more>>
Lingua::ZH::DateTime is a Perl module to convert time to chinese format.
SYNOPSIS
This module can convert asctime to chinese format in your locale. you can select china singapore hongkong taiwan locale and gb2312/big5 charset. asctime is ASC C standard format will from localtime like this:
$asctime = localtime();
<<lessSYNOPSIS
This module can convert asctime to chinese format in your locale. you can select china singapore hongkong taiwan locale and gb2312/big5 charset. asctime is ASC C standard format will from localtime like this:
$asctime = localtime();
Download (0.003MB)
Added: 2006-08-09 License: Perl Artistic License Price:
1173 downloads
Perl Panel 0.9.1
Perl Panel is an X11 panel program written in Perl. more>>
PerlPanel is an attempt to build a useable, lean panel program (like the Gnome Panel or the KDE Kicker) in Perl, using the Gtk2-Perl libraries.
PerlPanel is the ideal accompaniment to a light-weight Window Manager such as OpenBox, or a desktop-drawing program like iDesk. Click here to see all three working together.
Most of PerlPanels features are provided by applets - simple widgets that each do a different job. PerlPanel currently ships with 36 different applets.
<<lessPerlPanel is the ideal accompaniment to a light-weight Window Manager such as OpenBox, or a desktop-drawing program like iDesk. Click here to see all three working together.
Most of PerlPanels features are provided by applets - simple widgets that each do a different job. PerlPanel currently ships with 36 different applets.
Download (0.34MB)
Added: 2005-04-27 License: GPL (GNU General Public License) Price:
1646 downloads
DateTime::Locale 0.34
DateTime::Locale - Localization support for DateTime.pm more>>
DateTime::Locale is a Perl module with localization support for DateTime.pm.
SYNOPSIS
use DateTime::Locale;
my $loc = DateTime::Locale->load(en_GB);
print $loc->native_locale_name, "n",
$loc->long_datetime_format, "n";
# but mostly just things like ...
my $dt = DateTime->now( locale => fr );
print "Aujourdhui le mois est " . $dt->month_name, "n":
DateTime::Locale is primarily a factory for the various locale subclasses. It also provides some functions for getting information on available locales.
If you want to know what methods are available for locale objects, then please read the DateTime::Locale::Base documentation.
<<lessSYNOPSIS
use DateTime::Locale;
my $loc = DateTime::Locale->load(en_GB);
print $loc->native_locale_name, "n",
$loc->long_datetime_format, "n";
# but mostly just things like ...
my $dt = DateTime->now( locale => fr );
print "Aujourdhui le mois est " . $dt->month_name, "n":
DateTime::Locale is primarily a factory for the various locale subclasses. It also provides some functions for getting information on available locales.
If you want to know what methods are available for locale objects, then please read the DateTime::Locale::Base documentation.
Download (0.10MB)
Added: 2007-06-19 License: Perl Artistic License Price:
863 downloads
Perl Playlist 0.1
Perl Playlist is a command line application to generate m3u files based on your all your MP3s. more>>
Perl Playlist is a command line application to generate m3u files based on your all your MP3s.
Perl Playlist uses MP3::Info to read the MP3 tags.
Perl playlist maker was designed to build a playlist on a remote machine that does not have a screen or X windows.
<<lessPerl Playlist uses MP3::Info to read the MP3 tags.
Perl playlist maker was designed to build a playlist on a remote machine that does not have a screen or X windows.
Download (0.10MB)
Added: 2006-03-27 License: GPL (GNU General Public License) Price:
1312 downloads
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".
<<lessSYNOPSIS
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".
Download (0.012MB)
Added: 2007-07-24 License: Perl Artistic License Price:
822 downloads
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;
<<lessSYNOPSIS
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;
Download (0.034MB)
Added: 2007-08-09 License: Perl Artistic License Price:
807 downloads
Perl OS 4
Perl OS is a program written in Perl/Tk, designed to look like a simple operating system. more>>
Perl OS is a program written in the Perl programming language combined with the Perl module Tk.
Perl OS was created to make an easy interface to run Perl/Tk programs. It was also created to be an easy working environment complete with a text editor, paint program, and more.
The program comes with several programs, along with a utility to add many more which can be found on the Internet.
From the outside, Perl OS looks like a simple operating system. But inside, it is a powerful system for working with Perl and Tk.
For more details please visit the Perl OS home page:
http://perlos.sourceforge.net/
<<lessPerl OS was created to make an easy interface to run Perl/Tk programs. It was also created to be an easy working environment complete with a text editor, paint program, and more.
The program comes with several programs, along with a utility to add many more which can be found on the Internet.
From the outside, Perl OS looks like a simple operating system. But inside, it is a powerful system for working with Perl and Tk.
For more details please visit the Perl OS home page:
http://perlos.sourceforge.net/
Download (0.14MB)
Added: 2007-08-04 License: GPL v3 Price:
812 downloads
Perl Webmail 3.1.0
Perl Webmail is a Perl-based Web-mail application. more>>
Perl Webmail is a CGI/mod_perl application that interfaces with external POP3 and SMTP services.
Perl Webmail provides all the expected functionality of a mail client, such as read, reply, forward, delete, as well as sending and receiving attachments, storage for mail folders, contacts, and calendar notes.
Requierments:
- Mail::Box
- Crypt::Blowfish
- Crypt::CBC
- Date::Parse
- Text::Wrap
- IO::Scalar
Enhancements:
- This release features a rewrite for Template Toolkit support, various code level improvements, and a build script to generate a Slackware package.
<<lessPerl Webmail provides all the expected functionality of a mail client, such as read, reply, forward, delete, as well as sending and receiving attachments, storage for mail folders, contacts, and calendar notes.
Requierments:
- Mail::Box
- Crypt::Blowfish
- Crypt::CBC
- Date::Parse
- Text::Wrap
- IO::Scalar
Enhancements:
- This release features a rewrite for Template Toolkit support, various code level improvements, and a build script to generate a Slackware package.
Download (0.07MB)
Added: 2005-12-05 License: GPL (GNU General Public License) Price:
1420 downloads
Davids Perl Games 0.1.1
Davids Perl Games project is a collection of ASCII graphics arcade style games written in Perl. more>>
Davids Perl Games project is a collection of ASCII graphics arcade style games written in Perl.
These games are recreations of simple ASCII graphics games originally written in BASIC.
They are ideal for use as Perl programming tutorials. Some of the first few games are PerlBlaster (defend your planet from invading aliens), PerlRacer (steer your car through the twisting passages), and PerlArena (eliminate the mutant hordes).
<<lessThese games are recreations of simple ASCII graphics games originally written in BASIC.
They are ideal for use as Perl programming tutorials. Some of the first few games are PerlBlaster (defend your planet from invading aliens), PerlRacer (steer your car through the twisting passages), and PerlArena (eliminate the mutant hordes).
Download (0.063MB)
Added: 2006-11-16 License: GPL (GNU General Public License) Price:
1076 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above perl datetime search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed