$asctime($duration(...), FORMAT)
does not work as expected:

example:
//echo -a $asctime($duration(3600),s)
i expect "3600"
i get "1" (wtf?)
//echo -a $asctime($duration(3600),n)
i expect "60"
i get "00"


the format parameter to calculate a duration has to be a lot more intelligent than the parameter of asctime.
It has to look out if a larger time interval format parameters is present and if not it has to re-calculate the value using a smaller time interval:
n:s -> 60:0
s -> 3600


I see how this is a problem and why there are presets for $duration.

I guess it's best to use your own scripts to format a duration the way you want it.

Last edited by m0viefreak; 26/05/10 12:21 AM.