mIRC Home    About    Download    Register    News    Help

Print Thread
#89193 04/07/04 05:52 PM
Joined: Jul 2004
Posts: 2
G
GeeKman Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
G
Joined: Jul 2004
Posts: 2
wee my first post

any ways
i am working on a script and im trying to get this 1.3456 hours to be more like this

1hour 20min

this is what i have so far
;calc the hours and min of time remain
set %setitimemin $right(%setitimeremain,7)
set %setitimehour $calc(%setitimeremain-%setitimemin)
set %setitimemin1 $calc(%setitimemin*60)

if i comment out the last line it returns the decimel value just fine but it wont let me multiply it by 60

hope i made it clear
GeeKman
thanks

#89194 04/07/04 06:20 PM
Joined: Jul 2004
Posts: 2
G
GeeKman Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
G
Joined: Jul 2004
Posts: 2
good news was chating with a friend and he came up with useing the

$duration() function and it works perfect smile

thanks any ways smile


Link Copied to Clipboard