Melly has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I want to create sql-standard time (00:00:00) and then add an arbitary number of seconds to it - e.g.
00:00:00 + 61 = 00:01:01
Any suggestions?
Tom Melly, pm (at) cursingmaggot (stop) co (stop) ukmap{$a=1-$_/10;map{$d=$a;$e=$b=$_/20-2;map{($d,$e)=(2*$d*$e+$a,$e**2 -$d**2+$b);$c=$d**2+$e**2>4?$d=8:_}1..50;print$c}0..59;print$/}0..20
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Time string with addition
by Corion (Patriarch) on Jan 05, 2012 at 14:24 UTC | |
by Melly (Chaplain) on Jan 05, 2012 at 14:37 UTC | |
Re: Time string with addition
by MidLifeXis (Monsignor) on Jan 05, 2012 at 14:25 UTC | |
Re: Time string with addition
by moggs (Sexton) on Jan 05, 2012 at 16:34 UTC | |
Re: Time string with addition
by sundialsvc4 (Abbot) on Jan 06, 2012 at 13:59 UTC |
Back to
Seekers of Perl Wisdom