Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Simple date and time manipulation

by andreas1234567 (Vicar)
on Jan 19, 2011 at 09:57 UTC ( #883075=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    timethis 10000:  3 wallclock secs ( 3.09 usr +  0.06 sys =  3.15 CPU) 
    +@ 3174.60/s (n=10000)
    # Just calc:
    timethis 10000:  3 wallclock secs ( 2.95 usr +  0.00 sys =  2.95 CPU) 
    +@ 3389.83/s (n=10000)
    
  2. or download this
    use strict;
    use warnings;
    ...
    DateTime     3258/s         --       -99%
    Date::Calc 481882/s     14690%         --
    $ 
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://883075]
help
Chatterbox?
[Corion]: Discipulus: I think Module::Corelist ( or corelist ) can tell you that
[Corion]: Meh - Module::CoreList
[choroba]: Just use List::Util 1.29
[choroba]: Be kind to people using old Perl with newer version of the module
[Corion]: But why not simply specify 'List::Util' => 1.29 in your prerequisites? People might install a more recent version of the module into their Perl
[Corion]: (what choroba said)
[Discipulus]: ah! simpler and cleaner
[Discipulus]: thanks! use List::Util 1.29 qw(pairmap ... just works!
Discipulus is preparing another of his CUFP..

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (12)
As of 2017-05-25 09:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?