Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: formatting dates

by Albannach (Prior)
on Oct 06, 2003 at 13:19 UTC ( #296927=note: print w/ replies, xml ) Need Help??


in reply to formatting dates

I would use the regex by reflex, I think the unpack is pretty cool, and for yet more TIMTOWTDI, this is just ammo for those that like to benchmark substr against regexen:

$date = 'yyyymmdd'; substr($date,$_,0) = '-' for(6,4);
Update: stupid typo fixed

--
I'd like to be able to assign to an luser


Comment on Re: formatting dates
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://296927]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2015-07-06 10:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (72 votes), past polls