test reporter date format 1.27
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 6382
Test::Reporter::Date::Format 1.27
Test::Reporter::Date::Format Perl module contains date formating subroutines. more>>
Test::Reporter::Date::Format Perl module contains date formating subroutines.
SYNOPSIS
use Test::Reporter::Date::Format;
@lt = localtime(time);
print time2str($template, time);
print strftime($template, @lt);
print time2str($template, time, $zone);
print strftime($template, @lt, $zone);
print ctime(time);
print asctime(@lt);
print ctime(time, $zone);
print asctime(@lt, $zone);
This module provides routines to format dates into ASCII strings. They correspond to the C library routines strftime and ctime.
time2str(TEMPLATE, TIME [, ZONE])
time2str converts TIME into an ASCII string using the conversion specification given in TEMPLATE. ZONE if given specifies the zone which the output is required to be in, ZONE defaults to your current zone.
strftime(TEMPLATE, TIME [, ZONE])
strftime is similar to time2str with the exception that the time is passed as an array, such as the array returned by localtime.
ctime(TIME [, ZONE])
ctime calls time2str with the given arguments using the conversion specification "%a %b %e %T %Yn"
asctime(TIME [, ZONE])
asctime calls time2str with the given arguments using the conversion specification "%a %b %e %T %Yn"
<<lessSYNOPSIS
use Test::Reporter::Date::Format;
@lt = localtime(time);
print time2str($template, time);
print strftime($template, @lt);
print time2str($template, time, $zone);
print strftime($template, @lt, $zone);
print ctime(time);
print asctime(@lt);
print ctime(time, $zone);
print asctime(@lt, $zone);
This module provides routines to format dates into ASCII strings. They correspond to the C library routines strftime and ctime.
time2str(TEMPLATE, TIME [, ZONE])
time2str converts TIME into an ASCII string using the conversion specification given in TEMPLATE. ZONE if given specifies the zone which the output is required to be in, ZONE defaults to your current zone.
strftime(TEMPLATE, TIME [, ZONE])
strftime is similar to time2str with the exception that the time is passed as an array, such as the array returned by localtime.
ctime(TIME [, ZONE])
ctime calls time2str with the given arguments using the conversion specification "%a %b %e %T %Yn"
asctime(TIME [, ZONE])
asctime calls time2str with the given arguments using the conversion specification "%a %b %e %T %Yn"
Download (0.023MB)
Added: 2007-07-24 License: Perl Artistic License Price:
822 downloads
Log::Log4perl::DateFormat 1.11
Log::Log4perl::DateFormat is a Log4perl advanced date formatter helper class. more>>
Log::Log4perl::DateFormat is a Log4perl advanced date formatter helper class.
SYNOPSIS
use Log::Log4perl::DateFormat;
my $format = Log::Log4perl::DateFormat->new("HH:mm:ss,SSS");
# Simple time, resolution in seconds
my $time = time();
print $format->format($time), "n";
# => "17:02:39,000"
# Advanced time, resultion in milliseconds
use Time::HiRes;
my ($secs, $msecs) = Time::HiRes::gettimeofday();
print $format->format($secs, $msecs), "n";
# => "17:02:39,959"
Log::Log4perl::DateFormat is a low-level helper class for the advanced date formatting functions in Log::Log4perl::Layout::PatternLayout.
Unless youre writing your own Layout class like Log::Log4perl::Layout::PatternLayout, theres probably not much use for you to read this.
Log::Log4perl::DateFormat is a formatter which allows dates to be formatted according to the log4j spec on
http://java.sun.com/j2se/1.5.0/docs/api/java/text/SimpleDateFormat.html
which allows the following placeholders to be recognized and processed:
Symbol Meaning Presentation Example
------ ------- ------------ -------
G era designator (Text) AD
y year (Number) 1996
M month in year (Text & Number) July & 07
d day in month (Number) 10
h hour in am/pm (1~12) (Number) 12
H hour in day (0~23) (Number) 0
m minute in hour (Number) 30
s second in minute (Number) 55
S millisecond (Number) 978
E day in week (Text) Tuesday
D day in year (Number) 189
F day of week in month (Number) 2 (2nd Wed in July)
w week in year (Number) 27
W week in month (Number) 2
a am/pm marker (Text) PM
k hour in day (1~24) (Number) 24
K hour in am/pm (0~11) (Number) 0
z time zone (Text) Pacific Standard Time
Z RFC 822 time zone (Text) -0800
escape for text (Delimiter)
single quote (Literal)
For example, if you want to format the current Unix time in "MM/dd HH:mm" format, all you have to do is this:
use Log::Log4perl::DateFormat;
my $format = Log::Log4perl::DateFormat->new("MM/dd HH:mm");
my $time = time();
print $format->format($time), "n";
While the new() method is expensive, because it parses the format strings and sets up all kinds of structures behind the scenes, followup calls to format() are fast, because DateFormat will just call localtime() and sprintf() once to return the formatted date/time string.
So, typically, you would initialize the formatter once and then reuse it over and over again to display all kinds of time values.
Also, for your convenience, the following predefined formats are available, just as outlined in the log4j spec:
Format Equivalent Example
ABSOLUTE "HH:mm:ss,SSS" "15:49:37,459"
DATE "dd MMM yyyy HH:mm:ss,SSS" "06 Nov 1994 15:49:37,459"
ISO8601 "yyyy-MM-dd HH:mm:ss,SSS" "1999-11-27 15:49:37,459"
APACHE "[EEE MMM dd HH:mm:ss yyyy]" "[Wed Mar 16 15:49:37 2005]"
So, instead of passing
Log::Log4perl::DateFormat->new("HH:mm:ss,SSS");
you could just as well say
Log::Log4perl::DateFormat->new("ABSOLUTE");
and get the same result later on.
<<lessSYNOPSIS
use Log::Log4perl::DateFormat;
my $format = Log::Log4perl::DateFormat->new("HH:mm:ss,SSS");
# Simple time, resolution in seconds
my $time = time();
print $format->format($time), "n";
# => "17:02:39,000"
# Advanced time, resultion in milliseconds
use Time::HiRes;
my ($secs, $msecs) = Time::HiRes::gettimeofday();
print $format->format($secs, $msecs), "n";
# => "17:02:39,959"
Log::Log4perl::DateFormat is a low-level helper class for the advanced date formatting functions in Log::Log4perl::Layout::PatternLayout.
Unless youre writing your own Layout class like Log::Log4perl::Layout::PatternLayout, theres probably not much use for you to read this.
Log::Log4perl::DateFormat is a formatter which allows dates to be formatted according to the log4j spec on
http://java.sun.com/j2se/1.5.0/docs/api/java/text/SimpleDateFormat.html
which allows the following placeholders to be recognized and processed:
Symbol Meaning Presentation Example
------ ------- ------------ -------
G era designator (Text) AD
y year (Number) 1996
M month in year (Text & Number) July & 07
d day in month (Number) 10
h hour in am/pm (1~12) (Number) 12
H hour in day (0~23) (Number) 0
m minute in hour (Number) 30
s second in minute (Number) 55
S millisecond (Number) 978
E day in week (Text) Tuesday
D day in year (Number) 189
F day of week in month (Number) 2 (2nd Wed in July)
w week in year (Number) 27
W week in month (Number) 2
a am/pm marker (Text) PM
k hour in day (1~24) (Number) 24
K hour in am/pm (0~11) (Number) 0
z time zone (Text) Pacific Standard Time
Z RFC 822 time zone (Text) -0800
escape for text (Delimiter)
single quote (Literal)
For example, if you want to format the current Unix time in "MM/dd HH:mm" format, all you have to do is this:
use Log::Log4perl::DateFormat;
my $format = Log::Log4perl::DateFormat->new("MM/dd HH:mm");
my $time = time();
print $format->format($time), "n";
While the new() method is expensive, because it parses the format strings and sets up all kinds of structures behind the scenes, followup calls to format() are fast, because DateFormat will just call localtime() and sprintf() once to return the formatted date/time string.
So, typically, you would initialize the formatter once and then reuse it over and over again to display all kinds of time values.
Also, for your convenience, the following predefined formats are available, just as outlined in the log4j spec:
Format Equivalent Example
ABSOLUTE "HH:mm:ss,SSS" "15:49:37,459"
DATE "dd MMM yyyy HH:mm:ss,SSS" "06 Nov 1994 15:49:37,459"
ISO8601 "yyyy-MM-dd HH:mm:ss,SSS" "1999-11-27 15:49:37,459"
APACHE "[EEE MMM dd HH:mm:ss yyyy]" "[Wed Mar 16 15:49:37 2005]"
So, instead of passing
Log::Log4perl::DateFormat->new("HH:mm:ss,SSS");
you could just as well say
Log::Log4perl::DateFormat->new("ABSOLUTE");
and get the same result later on.
Download (0.22MB)
Added: 2007-06-12 License: Perl Artistic License Price:
865 downloads
Test-Parser 1.2
Test::Parser is a collection of parsers for different test output file formats. more>>
Test::Parser is a collection of parsers for different test output file formats. These parse the data into a general purpose data structure that can then be used to create reports, do post-processing analysis, etc.
Test-Parser can also export tests in SpikeSources TRPI test description XML language.
<<lessTest-Parser can also export tests in SpikeSources TRPI test description XML language.
Download (0.053MB)
Added: 2006-05-04 License: GPL (GNU General Public License) Price:
1268 downloads
Time::Format 1.02
Time::Format is a Perl module for easy-to-use date/time formatting. more>>
Time::Format is a Perl module for easy-to-use date/time formatting.
SYNOPSIS
use Time::Format qw(%time %strftime %manip);
$time{$format}
$time{$format, $unixtime}
print "Today is $time{yyyy/mm/dd}n";
print "Yesterday was $time{yyyy/mm/dd, time-24*60*60}n";
print "The time is $time{hh:mm:ss}n";
print "Another time is $time{H:mm am tz, $another_time}n";
print "Timestamp: $time{yyyymmdd.hhmmss.mmm}n";
%time also accepts Date::Manip strings and DateTime objects:
$dm = Date::Manip::ParseDate(last monday);
print "Last monday was $time{Month d, yyyy, $dm}";
$dt = DateTime->new (....);
print "Heres another date: $time{m/d/yy, $dt}";
It also accepts most ISO-8601 date/time strings:
$t = 2005/10/31T17:11:09; # date separator: / or - or .
$t = 2005-10-31 17.11.09; # in-between separator: T or _ or space
$t = 20051031_171109; # time separator: : or .
$t = 20051031171109; # separators may be omitted
$t = 2005/10/31; # date-only is okay
$t = 17:11:09; # time-only is okay
# But not:
$t = 20051031; # date-only without separators
$t = 171109; # time-only without separators
# ...because those look like epoch time numbers.
%strftime works like POSIXs strftime, if you like those %-formats.
$strftime{$format}
$strftime{$format, $unixtime}
$strftime{$format, $sec,$min,$hour, $mday,$mon,$year, $wday,$yday,$isdst}
print "POSIXish: $strftime{%A, %B %d, %Y, 0,0,0,12,11,95,2}n";
print "POSIXish: $strftime{%A, %B %d, %Y, 1054866251}n";
print "POSIXish: $strftime{%A, %B %d, %Y}n"; # current time
%manip works like Date::Manips UnixDate function.
$manip{$format};
$manip{$format, $when};
print "Date::Manip: $manip{%m/%d/%Y}n"; # current time
print "Date::Manip: $manip{%m/%d/%Y,last Tuesday}n";
These can also be used as standalone functions:
use Time::Format qw(time_format time_strftime time_manip);
print "Today is ", time_format(yyyy/mm/dd, $some_time), "n";
print "POSIXish: ", time_strftime(%A %B %d, %Y,$some_time), "n";
print "Date::Manip: ", time_manip(%m/%d/%Y,$some_time), "n";
This module creates global pseudovariables which format dates and times, according to formatting codes you pass to them in strings.
The %time formatting codes are designed to be easy to remember and use, and to take up just as many characters as the output time value whenever possible. For example, the four-digit year code is "yyyy", the three-letter month abbreviation is "Mon".
The nice thing about having a variable-like interface instead of function calls is that the values can be used inside of strings (as well as outside of strings in ordinary expressions). Dates are frequently used within strings (log messages, output, data records, etc.), so having the ability to interpolate them directly is handy.
Perl allows arbitrary expressions within curly braces of a hash, even when that hash is being interpolated into a string. This allows you to do computations on the fly while formatting times and inserting them into strings. See the "yesterday" example above.
The format strings are designed with programmers in mind. What do you need most frequently? 4-digit year, month, day, 24-based hour, minute, second -- usually with leading zeroes. These six are the easiest formats to use and remember in Time::Format: yyyy, mm, dd, hh, mm, ss. Variants on these formats follow a simple and consistent formula. This module is for everyone who is weary of trying to remember strftime(3)s arcane codes, or of endlessly writing $t[4]++; $t[5]+=1900 as you manually format times or dates.
Note that mm (and related codes) are used both for months and minutes. This is a feature. %time resolves the ambiguity by examining other nearby formatting codes. If its in the context of a year or a day, "month" is assumed. If in the context of an hour or a second, "minute" is assumed.
The format strings are not meant to encompass every date/time need ever conceived. But how often do you need the day of the year (strftimes %j) or the week number (strftimes %W)?
For capabilities that %time does not provide, %strftime provides an interface to POSIXs strftime, and %manip provides an interface to the Date::Manip modules UnixDate function.
If the companion module Time::Format_XS is also installed, Time::Format will detect and use it. This will result in a significant speed increase for %time and time_format.
<<lessSYNOPSIS
use Time::Format qw(%time %strftime %manip);
$time{$format}
$time{$format, $unixtime}
print "Today is $time{yyyy/mm/dd}n";
print "Yesterday was $time{yyyy/mm/dd, time-24*60*60}n";
print "The time is $time{hh:mm:ss}n";
print "Another time is $time{H:mm am tz, $another_time}n";
print "Timestamp: $time{yyyymmdd.hhmmss.mmm}n";
%time also accepts Date::Manip strings and DateTime objects:
$dm = Date::Manip::ParseDate(last monday);
print "Last monday was $time{Month d, yyyy, $dm}";
$dt = DateTime->new (....);
print "Heres another date: $time{m/d/yy, $dt}";
It also accepts most ISO-8601 date/time strings:
$t = 2005/10/31T17:11:09; # date separator: / or - or .
$t = 2005-10-31 17.11.09; # in-between separator: T or _ or space
$t = 20051031_171109; # time separator: : or .
$t = 20051031171109; # separators may be omitted
$t = 2005/10/31; # date-only is okay
$t = 17:11:09; # time-only is okay
# But not:
$t = 20051031; # date-only without separators
$t = 171109; # time-only without separators
# ...because those look like epoch time numbers.
%strftime works like POSIXs strftime, if you like those %-formats.
$strftime{$format}
$strftime{$format, $unixtime}
$strftime{$format, $sec,$min,$hour, $mday,$mon,$year, $wday,$yday,$isdst}
print "POSIXish: $strftime{%A, %B %d, %Y, 0,0,0,12,11,95,2}n";
print "POSIXish: $strftime{%A, %B %d, %Y, 1054866251}n";
print "POSIXish: $strftime{%A, %B %d, %Y}n"; # current time
%manip works like Date::Manips UnixDate function.
$manip{$format};
$manip{$format, $when};
print "Date::Manip: $manip{%m/%d/%Y}n"; # current time
print "Date::Manip: $manip{%m/%d/%Y,last Tuesday}n";
These can also be used as standalone functions:
use Time::Format qw(time_format time_strftime time_manip);
print "Today is ", time_format(yyyy/mm/dd, $some_time), "n";
print "POSIXish: ", time_strftime(%A %B %d, %Y,$some_time), "n";
print "Date::Manip: ", time_manip(%m/%d/%Y,$some_time), "n";
This module creates global pseudovariables which format dates and times, according to formatting codes you pass to them in strings.
The %time formatting codes are designed to be easy to remember and use, and to take up just as many characters as the output time value whenever possible. For example, the four-digit year code is "yyyy", the three-letter month abbreviation is "Mon".
The nice thing about having a variable-like interface instead of function calls is that the values can be used inside of strings (as well as outside of strings in ordinary expressions). Dates are frequently used within strings (log messages, output, data records, etc.), so having the ability to interpolate them directly is handy.
Perl allows arbitrary expressions within curly braces of a hash, even when that hash is being interpolated into a string. This allows you to do computations on the fly while formatting times and inserting them into strings. See the "yesterday" example above.
The format strings are designed with programmers in mind. What do you need most frequently? 4-digit year, month, day, 24-based hour, minute, second -- usually with leading zeroes. These six are the easiest formats to use and remember in Time::Format: yyyy, mm, dd, hh, mm, ss. Variants on these formats follow a simple and consistent formula. This module is for everyone who is weary of trying to remember strftime(3)s arcane codes, or of endlessly writing $t[4]++; $t[5]+=1900 as you manually format times or dates.
Note that mm (and related codes) are used both for months and minutes. This is a feature. %time resolves the ambiguity by examining other nearby formatting codes. If its in the context of a year or a day, "month" is assumed. If in the context of an hour or a second, "minute" is assumed.
The format strings are not meant to encompass every date/time need ever conceived. But how often do you need the day of the year (strftimes %j) or the week number (strftimes %W)?
For capabilities that %time does not provide, %strftime provides an interface to POSIXs strftime, and %manip provides an interface to the Date::Manip modules UnixDate function.
If the companion module Time::Format_XS is also installed, Time::Format will detect and use it. This will result in a significant speed increase for %time and time_format.
Download (0.038MB)
Added: 2007-07-19 License: Perl Artistic License Price:
830 downloads
XBlock-Reporter 1.2
XBlock-Reporter is a shell/PHP/MySQL frontend. more>>
Xblock reporter is a set of PHP and shell scripts to insert an exported report from an 8e6 Xstop R3000 appliance into a database, and then output that in a searchable web based format.
XBlock Reporter is a shell/PHP/MySQL front end to take the logs from an 8E6 Xstop appliance and store the data for searching/reporting.
<<lessXBlock Reporter is a shell/PHP/MySQL front end to take the logs from an 8E6 Xstop appliance and store the data for searching/reporting.
Download (4.6MB)
Added: 2006-07-10 License: GPL (GNU General Public License) Price:
1203 downloads
User Account Information 0.0.1 Beta2
User Account Information provides an ethernet users/customers traffic counter. more>>
User Account Information provides an ethernet users/customers traffic counter.
User Account Information is lightweight system for accounting for ethernet traffic on a per-user basis.
It includes a Web-based interface for allowing users to view their own network accounting information.
This product was designed and was tested in RedHat Linux 6.2 and in SlackWare Linux 7.0.
Main features:
- For each customer (who have IP adress in your local network area) are added two ipchains rule for counting input and output traffic.
- Each customer can look his own account information through WEB-interface.
- You ( as system administrator) can correct anything You want or anything you dont like in this program.
Enhancements:
- A date format error solely affecting output with DD/MM/YYYY action dates was corrected in the cgi-bin part.
<<lessUser Account Information is lightweight system for accounting for ethernet traffic on a per-user basis.
It includes a Web-based interface for allowing users to view their own network accounting information.
This product was designed and was tested in RedHat Linux 6.2 and in SlackWare Linux 7.0.
Main features:
- For each customer (who have IP adress in your local network area) are added two ipchains rule for counting input and output traffic.
- Each customer can look his own account information through WEB-interface.
- You ( as system administrator) can correct anything You want or anything you dont like in this program.
Enhancements:
- A date format error solely affecting output with DD/MM/YYYY action dates was corrected in the cgi-bin part.
Download (0.083MB)
Added: 2007-03-29 License: GPL (GNU General Public License) Price:
942 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
Test::Parser 1.1
Test::Parser is a collection of parsers for different test output file formats. more>>
Test::Parser is a collection of parsers for different test output file formats.
These parse the data into a general purpose data structure that can then be used to create reports, do post-processing analysis, etc.
Test::Parser can also export tests in SpikeSources TRPI test description XML language.
Installation:
To install the script and man pages in the standard areas, give the sequence of commands
$ perl Makefile.PL
$ make
$ make test
$ make install # you probably need to do this step as superuser
If you want to install the script in your own private space, use
$ perl Makefile.PL PREFIX=/home/joeuser
INSTALLMAN1DIR=/home/joeuser/man/man1
INSTALLMAN3DIR=/home/joeuser/man/man3
$ make
$ make test
$ make install # can do this step as joeuser
Note that `make test` does nothing interesting.
Enhancements:
- This release improves the LTP parser and adds a parse_ltp script that prints a tabular summary of the PASS/FAILs of test cases.
<<lessThese parse the data into a general purpose data structure that can then be used to create reports, do post-processing analysis, etc.
Test::Parser can also export tests in SpikeSources TRPI test description XML language.
Installation:
To install the script and man pages in the standard areas, give the sequence of commands
$ perl Makefile.PL
$ make
$ make test
$ make install # you probably need to do this step as superuser
If you want to install the script in your own private space, use
$ perl Makefile.PL PREFIX=/home/joeuser
INSTALLMAN1DIR=/home/joeuser/man/man1
INSTALLMAN3DIR=/home/joeuser/man/man3
$ make
$ make test
$ make install # can do this step as joeuser
Note that `make test` does nothing interesting.
Enhancements:
- This release improves the LTP parser and adds a parse_ltp script that prints a tabular summary of the PASS/FAILs of test cases.
Download (0.044MB)
Added: 2006-04-07 License: GPL (GNU General Public License) Price:
1295 downloads
Test::Tester::Capture 0.103
Test::Tester::Capture is a help testing test modules built with Test::Builder. more>>
Test::Tester::Capture is a help testing test modules built with Test::Builder.
This is a subclass of Test::Builder that overrides many of the methods so that they dont output anything.
It also keeps track of its own set of test results so that you can use Test::Builder based modules to perform tests on other Test::Builder based modules.
<<lessThis is a subclass of Test::Builder that overrides many of the methods so that they dont output anything.
It also keeps track of its own set of test results so that you can use Test::Builder based modules to perform tests on other Test::Builder based modules.
Download (0.014MB)
Added: 2006-11-01 License: Perl Artistic License Price:
1088 downloads
Test::Perl::Critic 0.07
Test::Perl::Critic is a Perl module use Perl::Critic in test programs. more>>
Test::Perl::Critic is a Perl module use Perl::Critic in test programs.
SYNOPSIS
use Test::Perl::Critic;
critic_ok($file); #Test one file
all_critic_ok($dir_1, $dir_2, $dir_N ); #Test all files in several $dirs
all_critic_ok() #Test all files in distro
Test::Perl::Critic wraps the Perl::Critic engine in a convenient subroutine suitable for test programs written using the Test::More framework. This makes it easy to integrate coding-standards enforcement into the build process. For ultimate convenience (at the expense of some flexibility), see the criticism pragma.
<<lessSYNOPSIS
use Test::Perl::Critic;
critic_ok($file); #Test one file
all_critic_ok($dir_1, $dir_2, $dir_N ); #Test all files in several $dirs
all_critic_ok() #Test all files in distro
Test::Perl::Critic wraps the Perl::Critic engine in a convenient subroutine suitable for test programs written using the Test::More framework. This makes it easy to integrate coding-standards enforcement into the build process. For ultimate convenience (at the expense of some flexibility), see the criticism pragma.
Download (0.017MB)
Added: 2006-10-23 License: Perl Artistic License Price:
1098 downloads
Test-AutoBuild 1.2.0
Test-AutoBuild is a framework for performing continuous, unattended, automated software builds. more>>
Test-AutoBuild is a framework for performing continuous, unattended, automated software builds.
Test-AutoBuild pulls code from source control repositories (CVS, Perforce, and GNU Arch are currently supported), calculates inter-module dependencies, builds each module, and then generates HTML status pages, copies binary packages to Web/FTP server roots, and sends email status alerts. It is written with flexibility and extensibility in mind to make it easy to integrate with a wide range of development tools and languages.
Enhancements:
- The backend build engine has been refactored into a modular workflow engine.
- Support for Mercurial SCM repos has been added, and existing SCM implementations extended to allow extraction of changelogs.
- Performance and scalability are improved by hard linking files instead of copying.
- Error reporting and logging has been enhanced to make debugging of crashes/problems simpler.
- Major work has been done on documentating the tools, configuration file format, and developer APIs.
- The coverage of the test suite has been increased to cover a large portion of the critical code sub-systems.
<<lessTest-AutoBuild pulls code from source control repositories (CVS, Perforce, and GNU Arch are currently supported), calculates inter-module dependencies, builds each module, and then generates HTML status pages, copies binary packages to Web/FTP server roots, and sends email status alerts. It is written with flexibility and extensibility in mind to make it easy to integrate with a wide range of development tools and languages.
Enhancements:
- The backend build engine has been refactored into a modular workflow engine.
- Support for Mercurial SCM repos has been added, and existing SCM implementations extended to allow extraction of changelogs.
- Performance and scalability are improved by hard linking files instead of copying.
- Error reporting and logging has been enhanced to make debugging of crashes/problems simpler.
- Major work has been done on documentating the tools, configuration file format, and developer APIs.
- The coverage of the test suite has been increased to cover a large portion of the critical code sub-systems.
Download (0.20MB)
Added: 2006-08-23 License: GPL (GNU General Public License) Price:
1157 downloads
DateTime::Format::Pg 0.15
DateTime::Format::Pg is a Perl module to parse and format PostgreSQL dates and times. more>>
DateTime::Format::Pg is a Perl module to parse and format PostgreSQL dates and times.
SYNOPSIS
use DateTime::Format::Pg;
my $dt = DateTime::Format::Pg->parse_datetime( 2003-01-16 23:12:01 );
# 2003-01-16T23:12:01+0200
DateTime::Format::Pg->format_datetime($dt);
This module understands the formats used by PostgreSQL for its DATE, TIME, TIMESTAMP, and INTERVAL data types. It can be used to parse these formats in order to create DateTime or DateTime::Duration objects, and it can take a DateTime or DateTime::Duration object and produce a string representing it in a format accepted by PostgreSQL.
CONSTRUCTORS
The following methods can be used to create DateTime::Format::Pg objects.
new( name => value, ... )
Creates a new DateTime::Format::Pg instance. This is generally not required for simple operations. If you wish to use a different parsing style from the default then it is more comfortable to create an object.
my $parser = DateTime::Format::Pg->new()
my $copy = $parser->new( european => 1 );
This method accepts the following options:
european
If european is set to non-zero, dates are assumed to be in european dd/mm/yyyy format. The default is to assume US mm/dd/yyyy format (because this is the default for PostgreSQL).
This option only has an effect if PostgreSQL is set to output dates in the PostgreSQL (DATE only) and SQL (DATE and TIMESTAMP) styles.
Note that you dont have to set this option if the PostgreSQL server has been set to use the ISO format, which is the default.
server_tz
This option can be set to a DateTime::TimeZone object or a string that contains a time zone name.
This value must be set to the same value as the PostgreSQL servers time zone in order to parse TIMESTAMP WITH TIMEZONE values in the PostgreSQL, SQL, and German formats correctly.
Note that you dont have to set this option if the PostgreSQL server has been set to use the ISO format, which is the default.
clone()
This method is provided for those who prefer to explicitly clone via a method called clone().
my $clone = $original->clone();
If called as a class method it will die.
<<lessSYNOPSIS
use DateTime::Format::Pg;
my $dt = DateTime::Format::Pg->parse_datetime( 2003-01-16 23:12:01 );
# 2003-01-16T23:12:01+0200
DateTime::Format::Pg->format_datetime($dt);
This module understands the formats used by PostgreSQL for its DATE, TIME, TIMESTAMP, and INTERVAL data types. It can be used to parse these formats in order to create DateTime or DateTime::Duration objects, and it can take a DateTime or DateTime::Duration object and produce a string representing it in a format accepted by PostgreSQL.
CONSTRUCTORS
The following methods can be used to create DateTime::Format::Pg objects.
new( name => value, ... )
Creates a new DateTime::Format::Pg instance. This is generally not required for simple operations. If you wish to use a different parsing style from the default then it is more comfortable to create an object.
my $parser = DateTime::Format::Pg->new()
my $copy = $parser->new( european => 1 );
This method accepts the following options:
european
If european is set to non-zero, dates are assumed to be in european dd/mm/yyyy format. The default is to assume US mm/dd/yyyy format (because this is the default for PostgreSQL).
This option only has an effect if PostgreSQL is set to output dates in the PostgreSQL (DATE only) and SQL (DATE and TIMESTAMP) styles.
Note that you dont have to set this option if the PostgreSQL server has been set to use the ISO format, which is the default.
server_tz
This option can be set to a DateTime::TimeZone object or a string that contains a time zone name.
This value must be set to the same value as the PostgreSQL servers time zone in order to parse TIMESTAMP WITH TIMEZONE values in the PostgreSQL, SQL, and German formats correctly.
Note that you dont have to set this option if the PostgreSQL server has been set to use the ISO format, which is the default.
clone()
This method is provided for those who prefer to explicitly clone via a method called clone().
my $clone = $original->clone();
If called as a class method it will die.
Download (0.019MB)
Added: 2007-05-17 License: Perl Artistic License Price:
890 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
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
DateTime::Format::Builder 0.7807
DateTime::Format::Builder is a Perl module to create datetime parser classes and objects. more>>
DateTime::Format::Builder is a Perl module to create datetime parser classes and objects.
SYNOPSIS
package DateTime::Format::Brief;
our $VERSION = 0.07;
use DateTime::Format::Builder
(
parsers => {
parse_datetime => [
{
regex => qr/^(d{4})(dd)(dd)(dd)(dd)(dd)$/,
params => [qw( year month day hour minute second )],
},
{
regex => qr/^(d{4})(dd)(dd)$/,
params => [qw( year month day )],
},
],
}
);
DateTime::Format::Builder creates DateTime parsers. Many string formats of dates and times are simple and just require a basic regular expression to extract the relevant information. Builder provides a simple way to do this without writing reams of structural code.
Builder provides a number of methods, most of which youll never need, or at least rarely need. Theyre provided more for exposing of the modules innards to any subclasses, or for when you need to do something slightly beyond what I expected.
<<lessSYNOPSIS
package DateTime::Format::Brief;
our $VERSION = 0.07;
use DateTime::Format::Builder
(
parsers => {
parse_datetime => [
{
regex => qr/^(d{4})(dd)(dd)(dd)(dd)(dd)$/,
params => [qw( year month day hour minute second )],
},
{
regex => qr/^(d{4})(dd)(dd)$/,
params => [qw( year month day )],
},
],
}
);
DateTime::Format::Builder creates DateTime parsers. Many string formats of dates and times are simple and just require a basic regular expression to extract the relevant information. Builder provides a simple way to do this without writing reams of structural code.
Builder provides a number of methods, most of which youll never need, or at least rarely need. Theyre provided more for exposing of the modules innards to any subclasses, or for when you need to do something slightly beyond what I expected.
Download (0.047MB)
Added: 2007-05-17 License: Perl Artistic License Price:
890 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 test reporter date format 1.27 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