dates
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 877
Dates 0.4.1
Dates project is a small, light-weight calendar that shares data with GNOME Evolution. more>>
Dates project is a small, light-weight calendar that shares data with GNOME Evolution.
Dates is a small, light-weight calendar that shares data with GNOME Evolution. Dates features an innovative, unified, zooming view and is designed for use on hand-held devices, such as the Nokia 770 or the Sharp Zaurus series of PDAs.
<<lessDates is a small, light-weight calendar that shares data with GNOME Evolution. Dates features an innovative, unified, zooming view and is designed for use on hand-held devices, such as the Nokia 770 or the Sharp Zaurus series of PDAs.
Download (0.43MB)
Added: 2007-04-14 License: GPL (GNU General Public License) Price:
924 downloads
Tk::Date 0.42
Tk::Date is a date/time widget for perl/Tk. more>>
Tk::Date is a date/time widget for perl/Tk.
SYNOPSIS
use Tk::Date;
$date_widget = $top->Date->pack;
$date_widget->get("%x %X");
Tk::Date implements a date/time widget. There are three ways to input a date:
Using the keyboard to input the digits and the tab key or the mouse pointer to move focus between fields.
Using up and down cursor keys to increment/decrement the date (only with installed Tk::NumEntryPlain widget).
Selecting up and down arrow buttons will increment or decrement the value of the active field (only with installed Tk::FireButton widget).
The Date/Time Format
Unlike Java, Perl does not have a date/time object. However, it is possible to use the unix time (seconds since epoch, that is 1st January 1970) as a replacement. This is limited, since on most architectures, the valid range is between 14th December 1901 and 19th January 2038. For other dates, it is possible to use a hash notation:
{ y => year,
m => month,
d => day,
H => hour,
M => minute,
S => second }
The abbreviations are derivated from the format letters of strftime. Note that year is the full year (1998 instead of 98) and month is the real month number, as opposed to the output of localtime(), where the month is subtracted by one.
In this document, the first method will be referred as unixtime and the second method as datehash.
STANDARD OPTIONS
Tk::Date descends from Frame and inherits all of its options.
-orient
Specified orientation of the increment and decrements buttons. May be vertical (default) or horizontal.
<<lessSYNOPSIS
use Tk::Date;
$date_widget = $top->Date->pack;
$date_widget->get("%x %X");
Tk::Date implements a date/time widget. There are three ways to input a date:
Using the keyboard to input the digits and the tab key or the mouse pointer to move focus between fields.
Using up and down cursor keys to increment/decrement the date (only with installed Tk::NumEntryPlain widget).
Selecting up and down arrow buttons will increment or decrement the value of the active field (only with installed Tk::FireButton widget).
The Date/Time Format
Unlike Java, Perl does not have a date/time object. However, it is possible to use the unix time (seconds since epoch, that is 1st January 1970) as a replacement. This is limited, since on most architectures, the valid range is between 14th December 1901 and 19th January 2038. For other dates, it is possible to use a hash notation:
{ y => year,
m => month,
d => day,
H => hour,
M => minute,
S => second }
The abbreviations are derivated from the format letters of strftime. Note that year is the full year (1998 instead of 98) and month is the real month number, as opposed to the output of localtime(), where the month is subtracted by one.
In this document, the first method will be referred as unixtime and the second method as datehash.
STANDARD OPTIONS
Tk::Date descends from Frame and inherits all of its options.
-orient
Specified orientation of the increment and decrements buttons. May be vertical (default) or horizontal.
Download (0.018MB)
Added: 2006-06-12 License: Perl Artistic License Price:
1230 downloads
exifDate 0.4
exifDate is a service menu that lets you change modification date of jpeg images with the date from exif informations. more>>
exifDate is a service menu that lets you change modification date of jpeg images with the date from exif informations.
So your images will be dated with the shoot date and not the rotated/resized... date.
<<lessSo your images will be dated with the shoot date and not the rotated/resized... date.
Download (0.006MB)
Added: 2006-09-24 License: GPL (GNU General Public License) Price:
1128 downloads
Date::Hijri 0.02
Date::Hijri is a Perl extension to convert islamic (hijri) and gregorian dates. more>>
Date::Hijri is a Perl extension to convert islamic (hijri) and gregorian dates.
SYNOPSIS
use Date::Hijri;
# convert gregorian to hijri date
my ($hd, $hm, $hy) = g2h($gd, $gm, $gy);
# convert hijri to gregorian date
my ($gd, $gm, $gy) = h2g($hd, $hm, $hy);
This simple module converts gregorian dates to islamic (hijri) and vice versa.
The dates must be given as an array containing the day, month and year, and return the corresponding date as a list with the same elements.
<<lessSYNOPSIS
use Date::Hijri;
# convert gregorian to hijri date
my ($hd, $hm, $hy) = g2h($gd, $gm, $gy);
# convert hijri to gregorian date
my ($gd, $gm, $gy) = h2g($hd, $hm, $hy);
This simple module converts gregorian dates to islamic (hijri) and vice versa.
The dates must be given as an array containing the day, month and year, and return the corresponding date as a list with the same elements.
Download (0.004MB)
Added: 2006-08-09 License: Perl Artistic License Price:
1181 downloads
Date::Roman 1.06
Date::Roman is a Perl OO extension for handling roman style dates. more>>
Date::Roman is a Perl OO extension for handling roman style dates.
SYNOPSIS
use Date::Roman;
$caesar_death = Date::Roman->new(roman => id 3 702);
print $caesar_death->ical(),"n"; #prints -520315
This module defines a class for handling Roman dates as defined by Julius Caesar in 45 BC.
<<lessSYNOPSIS
use Date::Roman;
$caesar_death = Date::Roman->new(roman => id 3 702);
print $caesar_death->ical(),"n"; #prints -520315
This module defines a class for handling Roman dates as defined by Julius Caesar in 45 BC.
Download (0.038MB)
Added: 2007-03-02 License: Perl Artistic License Price:
966 downloads
Date::ICal 1.72
Date::ICal is a Perl extension for ICalendar date objects. more>>
Date::ICal is a Perl extension for ICalendar date objects.
SYNOPSIS
use Date::ICal;
$ical = Date::ICal->new( ical => 19971024T120000 );
$ical = Date::ICal->new( epoch => time );
$ical = Date::ICal->new( year => 1964,
month => 10, day => 16, hour => 16,
min => 12, sec => 47 );
$hour = $ical->hour;
$year = $ical->year;
$ical_string = $ical->ical;
$epoch_time = $ical->epoch;
$ical2 = $ical + $duration;
(Where $duration is either a duration string, like P2W3DT7H9M, or a Date::ICal::Duration (qv) object.
$ical += P6DT12H;
$duration = $ical1 - $ical2;
$ical3 = $ical1 - $duration;
<<lessSYNOPSIS
use Date::ICal;
$ical = Date::ICal->new( ical => 19971024T120000 );
$ical = Date::ICal->new( epoch => time );
$ical = Date::ICal->new( year => 1964,
month => 10, day => 16, hour => 16,
min => 12, sec => 47 );
$hour = $ical->hour;
$year = $ical->year;
$ical_string = $ical->ical;
$epoch_time = $ical->epoch;
$ical2 = $ical + $duration;
(Where $duration is either a duration string, like P2W3DT7H9M, or a Date::ICal::Duration (qv) object.
$ical += P6DT12H;
$duration = $ical1 - $ical2;
$ical3 = $ical1 - $duration;
Download (0.043MB)
Added: 2007-08-16 License: Perl Artistic License Price:
803 downloads
LibHdate 1.4.9
LibHdate is a small C,C++ library for Hebrew calendar and dates, holidays, and reading sequence (parasha). more>>
LibHdate is a small C,C++ library for Hebrew calendar and dates, holidays, and reading sequence (parasha).
LibHdate is using the sorce code from Amos Shapirs hdate package fixed and patched by Nadav HarEl.
The Torah reading sequence is from tables by Zvi HarEl.
Installation:
From source:
Untar:
tar -xvzf libhdate-XXX.tar.gz
Configure:
cd libhdate-XXX
configure --prefix=/usr [--enable-examples --enable-python --enable-perl --enable-pascal]
--enable-examples - build and install examples
--enable-python - build and install the python bindings
--enable-perl - build and install the perl bindings
--enable-pascal - build and install the pascal bindings
You will need swig and perl/python devel files.
Build:
make
Install:
make install (as root)
<<lessLibHdate is using the sorce code from Amos Shapirs hdate package fixed and patched by Nadav HarEl.
The Torah reading sequence is from tables by Zvi HarEl.
Installation:
From source:
Untar:
tar -xvzf libhdate-XXX.tar.gz
Configure:
cd libhdate-XXX
configure --prefix=/usr [--enable-examples --enable-python --enable-perl --enable-pascal]
--enable-examples - build and install examples
--enable-python - build and install the python bindings
--enable-perl - build and install the perl bindings
--enable-pascal - build and install the pascal bindings
You will need swig and perl/python devel files.
Build:
make
Install:
make install (as root)
Download (0.43MB)
Added: 2007-04-07 License: GPL (GNU General Public License) Price:
930 downloads
Date::Pcalc 1.2
Date-Pcalc is a Perl module and is a direct translation of Steffen Beyers excellent Date::Calc module. more>>
Date-Pcalc is a Perl module and is a direct translation of Steffen Beyers excellent Date::Calc module to use Perl only instead of a combination of Perl and C.
This package consists of a Perl module for all kinds of date calculations based on the Gregorian calendar (the one used in all western countries today), thereby complying with all relevant norms and standards: ISO/R 2015-1971, DIN 1355 and, to some extent, ISO 8601 (where applicable).
<<lessThis package consists of a Perl module for all kinds of date calculations based on the Gregorian calendar (the one used in all western countries today), thereby complying with all relevant norms and standards: ISO/R 2015-1971, DIN 1355 and, to some extent, ISO 8601 (where applicable).
Download (0.060MB)
Added: 2006-03-29 License: GPL (GNU General Public License) Price:
1310 downloads
Date::Manip 5.44
Date::Manip is a date manipulation routines. more>>
Date::Manip is a date manipulation routines.
SYNOPSIS
use Date::Manip;
$version = DateManipVersion;
$date = ParseDate(@args);
$date = ParseDate($string);
$date = ParseDate($string);
@date = UnixDate($date,@format);
$date = UnixDate($date,@format);
$delta = ParseDateDelta(@args);
$delta = ParseDateDelta($string);
$delta = ParseDateDelta($string);
@str = Delta_Format($delta,$dec,@format);
$str = Delta_Format($delta,$dec,@format);
$recur = ParseRecur($string,$base,$date0,$date1,$flags);
@dates = ParseRecur($string,$base,$date0,$date1,$flags);
$flag = Date_Cmp($date1,$date2);
$d = DateCalc($d1,$d2 [,$errref] [,$del]);
$date = Date_SetTime($date,$hr,$min,$sec);
$date = Date_SetTime($date,$time);
$date = Date_SetDateField($date,$field,$val [,$nocheck]);
$date = Date_GetPrev($date,$dow,$today,$hr,$min,$sec);
$date = Date_GetPrev($date,$dow,$today,$time);
$date = Date_GetNext($date,$dow,$today,$hr,$min,$sec);
$date = Date_GetNext($date,$dow,$today,$time);
$name = Date_IsHoliday($date);
$listref = Events_List($date);
$listref = Events_List($date0,$date1);
$date = Date_ConvTZ($date);
$date = Date_ConvTZ($date,$from);
$date = Date_ConvTZ($date,"",$to);
$date = Date_ConvTZ($date,$from,$to);
$flag = Date_IsWorkDay($date [,$flag]);
$date = Date_NextWorkDay($date,$off [,$time]);
$date = Date_PrevWorkDay($date,$off [,$time]);
$date = Date_NearestWorkDay($date [,$tomorrowfirst]);
&Date_Init();
&Date_Init("VAR=VAL","VAR=VAL",...);
@list = Date_Init();
@list = Date_Init("VAR=VAL","VAR=VAL",...);
The above routines all check to make sure that Date_Init is called. If it hasnt been, they will call it automatically. As a result, there is usually no need to call Date_Init explicitely unless you want to change some of the config variables (described below). They also do error checking on the input.
The routines listed below are intended primarily for internal use by other Date::Manip routines. They do little or no error checking, and do not explicitely call Date_Init. Those functions are all done in the main Date::Manip routines above.
Because they are significantly faster than the full Date::Manip routines, they are available for use with a few caveats. Since little or no error checking is done, it is the responsibility of the programmer to ensure that valid data (AND valid dates) are passed to them. Passing invalid data (such as a non-numeric month) or invalid dates (Feb 31) will fail in unpredictable ways (possibly returning erroneous results). Also, since Date_Init is not called by these, it must be called explicitely by the programmer before using these routines.
In the following routines, $y may be entered as either a 2 or 4 digit year (it will be converted to a 4 digit year based on the variable YYtoYYYY described below). Month and day should be numeric in all cases. Most (if not all) of the information below can be gotten from UnixDate which is really the way I intended it to be gotten, but there are reasons to use these (these are significantly faster).
$day = Date_DayOfWeek($m,$d,$y);
$secs = Date_SecsSince1970($m,$d,$y,$h,$mn,$s);
$secs = Date_SecsSince1970GMT($m,$d,$y,$h,$mn,$s);
$days = Date_DaysSince1BC($m,$d,$y);
$day = Date_DayOfYear($m,$d,$y);
($y,$m,$d,$h,$mn,$s) = Date_NthDayOfYear($y,$n);
$days = Date_DaysInYear($y);
$days = Date_DaysInMonth($m,$y);
$wkno = Date_WeekOfYear($m,$d,$y,$first);
$flag = Date_LeapYear($y);
$day = Date_DaySuffix($d);
$tz = Date_TimeZone();
<<lessSYNOPSIS
use Date::Manip;
$version = DateManipVersion;
$date = ParseDate(@args);
$date = ParseDate($string);
$date = ParseDate($string);
@date = UnixDate($date,@format);
$date = UnixDate($date,@format);
$delta = ParseDateDelta(@args);
$delta = ParseDateDelta($string);
$delta = ParseDateDelta($string);
@str = Delta_Format($delta,$dec,@format);
$str = Delta_Format($delta,$dec,@format);
$recur = ParseRecur($string,$base,$date0,$date1,$flags);
@dates = ParseRecur($string,$base,$date0,$date1,$flags);
$flag = Date_Cmp($date1,$date2);
$d = DateCalc($d1,$d2 [,$errref] [,$del]);
$date = Date_SetTime($date,$hr,$min,$sec);
$date = Date_SetTime($date,$time);
$date = Date_SetDateField($date,$field,$val [,$nocheck]);
$date = Date_GetPrev($date,$dow,$today,$hr,$min,$sec);
$date = Date_GetPrev($date,$dow,$today,$time);
$date = Date_GetNext($date,$dow,$today,$hr,$min,$sec);
$date = Date_GetNext($date,$dow,$today,$time);
$name = Date_IsHoliday($date);
$listref = Events_List($date);
$listref = Events_List($date0,$date1);
$date = Date_ConvTZ($date);
$date = Date_ConvTZ($date,$from);
$date = Date_ConvTZ($date,"",$to);
$date = Date_ConvTZ($date,$from,$to);
$flag = Date_IsWorkDay($date [,$flag]);
$date = Date_NextWorkDay($date,$off [,$time]);
$date = Date_PrevWorkDay($date,$off [,$time]);
$date = Date_NearestWorkDay($date [,$tomorrowfirst]);
&Date_Init();
&Date_Init("VAR=VAL","VAR=VAL",...);
@list = Date_Init();
@list = Date_Init("VAR=VAL","VAR=VAL",...);
The above routines all check to make sure that Date_Init is called. If it hasnt been, they will call it automatically. As a result, there is usually no need to call Date_Init explicitely unless you want to change some of the config variables (described below). They also do error checking on the input.
The routines listed below are intended primarily for internal use by other Date::Manip routines. They do little or no error checking, and do not explicitely call Date_Init. Those functions are all done in the main Date::Manip routines above.
Because they are significantly faster than the full Date::Manip routines, they are available for use with a few caveats. Since little or no error checking is done, it is the responsibility of the programmer to ensure that valid data (AND valid dates) are passed to them. Passing invalid data (such as a non-numeric month) or invalid dates (Feb 31) will fail in unpredictable ways (possibly returning erroneous results). Also, since Date_Init is not called by these, it must be called explicitely by the programmer before using these routines.
In the following routines, $y may be entered as either a 2 or 4 digit year (it will be converted to a 4 digit year based on the variable YYtoYYYY described below). Month and day should be numeric in all cases. Most (if not all) of the information below can be gotten from UnixDate which is really the way I intended it to be gotten, but there are reasons to use these (these are significantly faster).
$day = Date_DayOfWeek($m,$d,$y);
$secs = Date_SecsSince1970($m,$d,$y,$h,$mn,$s);
$secs = Date_SecsSince1970GMT($m,$d,$y,$h,$mn,$s);
$days = Date_DaysSince1BC($m,$d,$y);
$day = Date_DayOfYear($m,$d,$y);
($y,$m,$d,$h,$mn,$s) = Date_NthDayOfYear($y,$n);
$days = Date_DaysInYear($y);
$days = Date_DaysInMonth($m,$y);
$wkno = Date_WeekOfYear($m,$d,$y,$first);
$flag = Date_LeapYear($y);
$day = Date_DaySuffix($d);
$tz = Date_TimeZone();
Download (0.14MB)
Added: 2006-06-14 License: Perl Artistic License Price:
1240 downloads
Class::Date 1.1.9
Class::Date provides a date datatype for Perl. more>>
Class::Date is a perl module, which provides a simple date type for perl.
You can create new Class::Date objects with a constructor from different scalar formats, array refs, and hash refs, and then you can easily manipulate it by the builtin "+" and "-" operators (e.g., $date=date([2001,03,15])+3Y 1s). Relative date types also available.
Enhancements:
- This release adds "ampm" and "meridiam" methods.
<<lessYou can create new Class::Date objects with a constructor from different scalar formats, array refs, and hash refs, and then you can easily manipulate it by the builtin "+" and "-" operators (e.g., $date=date([2001,03,15])+3Y 1s). Relative date types also available.
Enhancements:
- This release adds "ampm" and "meridiam" methods.
Download (0.034MB)
Added: 2006-05-15 License: GPL (GNU General Public License) Price:
1257 downloads
Date Calculator 0.1
Date Calculator is a date calculator application written in pyqt. more>>
Date Calculator is a date calculator application written in pyqt. You can add or subtract days to a date, or calculate the number of days between two dates.
You can also choose to run your calculations using only working days and/or calculate inclusive of the start/end dates. There is a comprehensive gui for setting holiday dates.
Holidays can be fixed annual dates, variable dates, such as "the 1st Monday in June" or "the closest Monday to 22 February". This utility could be useful for people who need to be able to calculate time critical deadlines, such as lawyers.
Date Calculator application is also available as a superkaramba theme. You can download both from the download link.
<<lessYou can also choose to run your calculations using only working days and/or calculate inclusive of the start/end dates. There is a comprehensive gui for setting holiday dates.
Holidays can be fixed annual dates, variable dates, such as "the 1st Monday in June" or "the closest Monday to 22 February". This utility could be useful for people who need to be able to calculate time critical deadlines, such as lawyers.
Date Calculator application is also available as a superkaramba theme. You can download both from the download link.
Download (0.19MB)
Added: 2006-04-03 License: GPL (GNU General Public License) Price:
1307 downloads
Kalendae 1.6
Kalendae project is a tool to convert dates into Latin, using ancient Romes calendar. more>>
Kalendae project is a tool to convert dates between the modern western calendar (entered using a localized GUI) and the ancient Roman one expressed in Latin.
Leap years are taken into account starting from 10 B.C.
<<lessLeap years are taken into account starting from 10 B.C.
Download (0.026MB)
Added: 2006-10-16 License: GPL (GNU General Public License) Price:
1104 downloads
Date::Formatter 0.09
Date::Formatter Perl module is a simple Date and Time formatting object. more>>
Date::Formatter Perl module is a simple Date and Time formatting object.
SYNOPSIS
use Date::Formatter;
# create a Date::Formatter object with the current date and time.
my $date = Date::Formatter->now();
# create a formatter routine for this object
# see formatter mini-language documentation below
$date->createDateFormatter("(hh):(mm):(ss) (MM)/(DD)/(YYYY)");
print $date; # print date in this format -> 12:56:03 4/12/2004
# get the formatter for use with other objects
my $formatter = $date->getDateFormatter();
# create an interval of time
my $interval = Date::Formatter->createTimeInterval(years => 1, days => 2, minutes => 15);
# re-use the formater from above
$interval->setDateFormatter($formatter);
print $interval; # print date in this format -> 12:56:03 4/12/2004
# use overloaded operators
my $future_date = $date + $interval;
# sort the dates (again with the overload operator)
my @sorted_dates = sort { $a $b } ($date, $interval, $future_date);
This module provides a fast and very flexible mini-language to be used in formatting dates and times. In order to make that useful though, we had to make a fully functioning date & time object. This object looks and smells much like the Java and Javascript Date object on purpose. We also overloaded a number of operators to allow date addition and subtraction as well as comparisons.
<<lessSYNOPSIS
use Date::Formatter;
# create a Date::Formatter object with the current date and time.
my $date = Date::Formatter->now();
# create a formatter routine for this object
# see formatter mini-language documentation below
$date->createDateFormatter("(hh):(mm):(ss) (MM)/(DD)/(YYYY)");
print $date; # print date in this format -> 12:56:03 4/12/2004
# get the formatter for use with other objects
my $formatter = $date->getDateFormatter();
# create an interval of time
my $interval = Date::Formatter->createTimeInterval(years => 1, days => 2, minutes => 15);
# re-use the formater from above
$interval->setDateFormatter($formatter);
print $interval; # print date in this format -> 12:56:03 4/12/2004
# use overloaded operators
my $future_date = $date + $interval;
# sort the dates (again with the overload operator)
my @sorted_dates = sort { $a $b } ($date, $interval, $future_date);
This module provides a fast and very flexible mini-language to be used in formatting dates and times. In order to make that useful though, we had to make a fully functioning date & time object. This object looks and smells much like the Java and Javascript Date object on purpose. We also overloaded a number of operators to allow date addition and subtraction as well as comparisons.
Download (0.012MB)
Added: 2007-06-09 License: Perl Artistic License Price:
868 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
PHP Date Picker Class 1.0.5
PHP Date Picker Class will automatically generate the required HTML and JavaScript code. more>>
PHP Date Picker Class library will automatically generate the required HTML and JavaScript code that will make a pop-up window appear to let the user choose a date from a calendar. The selected date will be passed to a user-specified control from the calling page.
Every aspect is customizable by modifying a template and a related CSS file. The format in which the date is returned, the default date and time period, and the first day of the week can be selected.
Many thanks to Johan van Ieperen for sending in the dutch translation for the PHP class and for the valuable comments he made for improving usability, to Achim from Germany for finding the bug that would screw up the calendar on certain situations and also thank to Wassilios Meletiadis for sending in the german translation for this PHP class.
Further suggestions, comments and requests are welcommed. Id also really appreciate if you could send me links to the web pages where you are using the class so I can give them as refference and convince more people to use it. Thanks!
Enhancements:
- The selected date and time were not preserved if the month or year were changed.
- Using any date format other than the default would cause all dates to be disabled everywhere.
- A potential problem with selectableYearsRange and selectableTimesRange was fixed.
- The cause of the problem was the fact that PHPs date() function returns a string and therefore date("Y") would return the current date as a string rather than an integer, which made the calendar unusable.
<<lessEvery aspect is customizable by modifying a template and a related CSS file. The format in which the date is returned, the default date and time period, and the first day of the week can be selected.
Many thanks to Johan van Ieperen for sending in the dutch translation for the PHP class and for the valuable comments he made for improving usability, to Achim from Germany for finding the bug that would screw up the calendar on certain situations and also thank to Wassilios Meletiadis for sending in the german translation for this PHP class.
Further suggestions, comments and requests are welcommed. Id also really appreciate if you could send me links to the web pages where you are using the class so I can give them as refference and convince more people to use it. Thanks!
Enhancements:
- The selected date and time were not preserved if the month or year were changed.
- Using any date format other than the default would cause all dates to be disabled everywhere.
- A potential problem with selectableYearsRange and selectableTimesRange was fixed.
- The cause of the problem was the fact that PHPs date() function returns a string and therefore date("Y") would return the current date as a string rather than an integer, which made the calendar unusable.
Download (0.063MB)
Added: 2007-03-05 License: Free for non-commercial use Price:
984 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 dates 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