Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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


Comment on Re: Convert time into seconds

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2014-12-20 17:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (97 votes), past polls