Main > Programming > Libraries >

App::datetime 0.964

App::datetime 0.964

Sponsored Links

App::datetime 0.964 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.12 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 1103
Date added: 2006-10-17
Publisher: App::datetime Team

App::datetime 0.964 description

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)

App::datetime 0.964 Screenshot

Advertisements

App::datetime 0.964 Keywords

Bookmark App::datetime 0.964

Hyperlink code:
Link for forum:

App::datetime 0.964 Copyright

WareSeeker periodically updates pricing and software information of App::datetime 0.964 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 App::datetime 0.964 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
DateTime is a date and time object. Free Download
App::Context is an application framework for web applications, command-line programs, server programs, and web services. Free Download
DateTime::Locale - Localization support for DateTime.pm Free Download
Rose::DateTime is a Perl module with DateTime helper functions and objects. Free Download
Fast Date Picker is a calendar that is easy to integrate into Web pages that require the users to select a date. Free Download
App::Repository is a logical data access layer for the App::Context Framework. Free Download
Lingua::ZH::DateTime is a Perl module to convert time to chinese format. Free Download
Data::Faker::DateTime is a Data::Faker plugin. Free Download