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

Re: Round time to nearest 15 or 30 minutes

by atcroft (Abbot)
on Apr 25, 2006 at 03:52 UTC ( [id://545458]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub myfunc {
        my ($ts, $interval) = @_;
    ...
        $minute = substr($ts, 10, 2);
        return $interval * int($minute / $interval);
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-16 12:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found