laziness, impatience, and hubris | |
PerlMonks |
Re^2: What's "Better" DateTime or localtime?by mmartin (Monk) |
on Jul 17, 2013 at 20:34 UTC ( [id://1044891]=note: print w/replies, xml ) | Need Help?? |
Your a poet and you didn't even know it.... I really just wanted people's opinion on what they liked using "better"... I decided to use the localtime method/function (*whichever its called) along with the Time::Piece Module. I found that Module had lots of useful Methods with it. Some that I used include:     *If $t contains 'localtime', then...         - $t->sec;         - $t->min;         - $t->hour;         - $t->mon;         - $t->mday;         - $t->wday;         - $t->year;         - $t->mdy("/"); Those were just some of the Methods I found useful when I was writing my script. I'm sure the other Module/Function has plenty of similar Methods along with them. But I just found that this one was a bit more useful for myself... Thanks, Matt
In Section
Seekers of Perl Wisdom
|
|