Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Convert time into seconds

by blue_cowdawg (Monsignor)
on Apr 23, 2013 at 14:29 UTC ( #1030158=note: print w/replies, xml ) Need Help??

in reply to Convert time into seconds

      Hi, I am new to Perl. I've got a task to convert a given time (e.g, 6 minutes 30 secs or 24 secs 50 millisecs) completely in seconds.

Welcome to the Monastery Lucifer.
The problem with your question is what I refer to as "problem definition." What format is your input being resented as (eg. 00:00:00.000 would be one way).

While you are at it check out Understanding and Using Perl Monks so that you can effectively ask questions that yield useful answers.

Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2016-10-25 18:59 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (326 votes). Check out past polls.