Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: localtime parse within hash init

by roboticus (Chancellor)
on Nov 04, 2014 at 11:33 UTC ( #1106014=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub date_hash {
        my ($dtm, $rv) = (shift // time, {});
        @{$r}{qw(sec min hour mday mon year wday yday isdst)} = localtime(
    +$dtm);
        return $rv;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2022-08-15 04:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?