Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Which DateTime:: module to use?

by Cristoforo (Curate)
on Aug 27, 2012 at 14:03 UTC ( [id://989991]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    use warnings;
    ...
        printf "Avg of %d lines", scalar @data;
        print +(map {sprintf "%10.5f", $sum[$_] / @data} @idx), "\n";
    }
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    use warnings;
    ...
    2011.01.13,22:00,1.33494,1.33563,1.33489,1.33524,318
    2011.01.13,22:05,1.33524,1.33551,1.33512,1.33549,182
    2011.01.14,22:05,1.33524,1.33551,1.33512,1.33549,182
    
  3. or download this
    C:\Old_Data\perlp>perl t33.pl
    2011-01-13 21:00:00  -+-  2011-01-14 09:00:00
    Avg of 9 lines   1.33478   1.33509   1.33458   1.33482
    2011-01-14 22:00:00  -+-  2011-01-15 10:00:00
    Avg of 1 lines   1.33524   1.33551   1.33512   1.33549
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 07:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found