【亦秋】iapp 时长转时间
fn time(a)
s/(1000,a)
s(a/60/60,h)
s(a/60%60,m)
f(m10)
{
ss("0"+m,m)
}
s(a%60,s)
f(s10)
{
ss("0"+s,s)
}
ss(h+":"+m+":"+s,ss.time)
end fn
//以上代码放到模块中
调用方法:
s a=4567
fn 模块名.time(a)
tw(ss.time)http://cdn.u1.huluxia.com/g4/M03/2D/63/rBAAdl9NId2AOlHgAAASQHnJck0122.png
http://cdn.u1.huluxia.com/g4/M02/2C/76/rBAAdl9MqjuAIfueAAELLgGmAME709.jpg
页:
[1]