Focal Point
Seconds Routine

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9371038331

February 28, 2005, 07:40 PM
Prarie
Seconds Routine
Anyone know a good Routine to convert seconds into Hour/Minutes/Seconds? I don't know why my Brain is having a problem with this?

Prarie
February 28, 2005, 08:22 PM
TexasStingray
Divide by 60 gives you minutes divide minutes by 60 gives you hours

MINUTES/I9 = SECONDS/60;
HOURS/I9 = MINUTES/60;
February 28, 2005, 08:28 PM
Prarie
Well yes that works...I was just thinking of some routine...that made it all come together.
If you have 244 seconds...I need it to read
00:04:04
March 01, 2005, 02:04 AM
j.gross
So easy in APL. Tedious in Focus.
hhmmss/I6=

INT( seconds/3600 ) * 10000
+ INT( IMOD(seconds,3600,'I4')/60 ) *
100
+ I
MOD(seconds,60,'I2');
time/A8=EDIT(hhmmss,'99:99:99')

This message has been edited. Last edited by: <Mabel>,
March 01, 2005, 12:17 PM
Prarie
That Works! Thanks so much...I knew there was some trick out there somewhere.