in reply to Re^3: What's "Better" DateTime or localtime?
in thread What's "Better" DateTime or localtime?

After playing around with the Time::Piece Module for a bit I think I'm going to use that instead as you suggested.

It seems like there's a ton more Methods available for it including this one which is cool --> $date->mdy("/").
It looks like there is about, like 50-60 methods available for the Module so it seems pretty flexible...

I like it!

Thanks Again,
Matt

  • Comment on Re^4: What's "Better" DateTime or localtime?

Replies are listed 'Best First'.
Re^5: What's "Better" DateTime or localtime?
by jeffa (Bishop) on Jul 11, 2013 at 22:00 UTC

    Don't forget that Time::Piece delegates strftime() and strptime() too! :)

    perl -MTime::Piece -le'print localtime->strftime("%m/%d/%Y %T")'

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)