Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

LanX

by LanX (Chancellor)
on Sep 03, 2008 at 12:42 UTC ( #708738=user: print w/replies, xml ) Need Help??



 Solum laborare numquam ludere, hebes fecit LanX!

Motto: "Je suis Marxiste – tendance Groucho!"

Previous Motto: "The world is my country, science is my religion."

Next Motto "vi vi vi is the editor of the beast!" ... but using a free version of vi is not a sin, it's a penance.


LanX-Posts I frequently link to

Perlfun

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[marto]: good morning all, TCIF
[gnosti]: I'm reading from ffmpeg lengths of video clips in H:M:S and needing to add them and format them back to H:M:S for feeding back to ffmpeg
[marioroy]: kcott Thanks
[Corion]: gnosti: I would cheat and use my approach instead of dealing with durations as objects, or a module
[Corion]: You could even do the calculation directly - my $duration = $H * 3600+ $M*60 + $S; strftime '%H:%M:%S', timelocal($duratio n)
[Corion]: (and that strftime call is largely superfluous too, converting back to H:M:S isn't hard either)

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2017-08-18 09:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (297 votes). Check out past polls.

    Notices?