Main Navigation

Content

Date and Time in Perl

Learn Perl Now!
And get a job doing Perl.

Introduction

Many newcomers to Perl ask how to properly handle, process and manipulate dates and times in Perl. The proper answer is that while Perl has basic facilities for this in perlfunc and the POSIX module, one should use a good date-and-time module from CPAN. This page aims to lead people in the right direction.

CPAN Distributions for Date and Time Manipulation

DateTime

The DateTime CPAN distribution is a highly recommended module for handling dates and times. Here are some useful helper packages for it:

Share/Bookmark

Sidebar

Footer