Date::Formatter 0.09
Sponsored Links
Date::Formatter 0.09 Ranking & Summary
File size:
0.012 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
868
Date added:
2007-06-09
Publisher:
Stevan Little and Rob Kinyon
Date::Formatter 0.09 description
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.
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.
Date::Formatter 0.09 Screenshot
Date::Formatter 0.09 Keywords
Formatter Perl
Formatter 0.09
simple date and time
date and time formatting
date and time
time formatting
Simple Date
Perl module
date
object
time
interval
module
formatter
Date::Formatter
DateFormatter
Bookmark Date::Formatter 0.09
Date::Formatter 0.09 Copyright
WareSeeker periodically updates pricing and software information of Date::Formatter 0.09 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Date::Formatter 0.09 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
current date and time
time and date
world date and time
date and time of super bowl
todayu0027s date and time
super bowl 2007 date and time
date and time in iraq
date and time in uk
simple date ideas
javascript date and time
date and time of postal exam
date and time calendar
System time
simple date format
date and time calculator
Date and time notation by country
date and time of moon phases
super bowl 2006 date and time
Related Software
DateTime::Format::Pg is a Perl module to parse and format PostgreSQL dates and times. Free Download
DateTime::Format::Epoch::TJD is a Perl module that can convert DateTimes to/from Truncated Julian Days. Free Download
DateTime::Format::Epoch::RataDie is a Perl module that can convert DateTimes to/from Rata Die. Free Download
DateTime::Format::Epoch::Unix is a Perl module that can convert DateTimes to/from Unix epoch seconds. Free Download
DateTime is a date and time object. Free Download
DateTime::Format::Epoch::DotNet is a Perl module that can convert DateTimes to/from .NET epoch seconds. Free Download
App::Manager is a Perl module for installing, managing and uninstalling software packages. Free Download
DateTime::Precise can perform common time and date operations with additional GPS operations. Free Download
Latest Software
Popular Software
Favourite Software