in reply to Time string with addition

Consider doing the calculation in SQL.

As an alternative, do the calculation in seconds and convert it to a string after your calculation using POSIX::strftime.

Replies are listed 'Best First'.
Re^2: Time string with addition
by Melly (Chaplain) on Jan 05, 2012 at 14:37 UTC

    Hmm... lost a post... anyway, sql not an option since sql won't have access to the required offset... However, I think I've solved it with localtime(+$x) and then extracting the time part... Thanks all...

    map{$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
    Tom Melly, pm (at) cursingmaggot (stop) co (stop) uk