Quantcast
Channel: Perl – programming pointers
Viewing all articles
Browse latest Browse all 22

Date print formats Perl Date::Manip

$
0
0

Perl Date::Manip is one of the modules which I use a lot. It’s a wonderful lib and has very clean API with great documentation. Below is a quick look at Date::Manip print format options which sometimes is very handy. For detailed interpretation and other options encourage to go through Date::Manip on CPAN

Example:

my $present_date_hash = Date::Manip::Date->new("today");
my $present_date = $present_date_hash->printf("%Y-%m-%d %H:%M:%S");

Happy Coding!


Viewing all articles
Browse latest Browse all 22

Latest Images

Trending Articles





Latest Images