Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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]
[marto]: you have a balcony on the Sun?
marto ducks
[Discipulus]: bravo! orange juice will help
[marto]: not on the Sun, it'd vaporise

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2018-03-21 11:12 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (267 votes). Check out past polls.