Convert to Hrs:Mins:Secs format

Convert to Hrs:Mins:Secs format

evo80
Collaborator Collaborator
1,160 Views
12 Replies
Message 1 of 13

Convert to Hrs:Mins:Secs format

evo80
Collaborator
Collaborator

Good Day,

Would anybody know the macro code to convert say 123.45mins to a Hrs:Mins:Secs Format?

Regards 

0 Likes
Accepted solutions (1)
1,161 Views
12 Replies
Replies (12)
Message 2 of 13

rafael.sansao
Advisor
Advisor
Accepted solution
REAL $time = 123.45
STRING $time_string = time_to_string($time) 
MESSAGE INFO $time_string

Rafael Sansão

OptiNC - www.optinc.tech

EESignature

0 Likes
Message 3 of 13

TK.421
Advisor
Advisor

always check the reference parameters, powermill is always getting useful ones. 

Capture.PNG


the numbers never lie
Message 4 of 13

evo80
Collaborator
Collaborator

I actually use it a lot.

Which section is that under?

0 Likes
Message 5 of 13

evo80
Collaborator
Collaborator

Found it,

Right at the bottom of functions.

 

Message 6 of 13

TK.421
Advisor
Advisor

i know you do, you're a sharp guy! it's under the functions link. there's actually a ton of new stuff i didnt know about.


the numbers never lie
0 Likes
Message 7 of 13

evo80
Collaborator
Collaborator

Not that sharp mate, I'm a Norwich City fan! :)))

0 Likes
Message 8 of 13

TK.421
Advisor
Advisor

i'm gonna assume that's the soccer equivalent to the Detroit Lions? hahahaaha! everyone has their guilty pleasures, youre good.

 

EDIT: i just looked them up. wow. you have my pity


the numbers never lie
0 Likes
Message 9 of 13

evo80
Collaborator
Collaborator

Don't really know much about American football but I'm assuming, also, that the Lions are having a pitiful season!

0 Likes
Message 10 of 13

TK.421
Advisor
Advisor

the season is over, they just have a pitiful existence in general 😆


the numbers never lie
0 Likes
Message 11 of 13

evo80
Collaborator
Collaborator

Well, seeing as you've scoped my team you'll realize that with 9 games remaining and on past performances our season is already over😪

0 Likes
Message 12 of 13

TK.421
Advisor
Advisor

yep. but if that's your home town team, you have to support them! 


the numbers never lie
0 Likes
Message 13 of 13

evo80
Collaborator
Collaborator

Yep, thick and thin comes to mind

0 Likes