IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Seconds Routine
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Virtuoso
Posted
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
 
Posts: 1188 | Location: San Antonio | Registered: February 28, 2005Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
Divide by 60 gives you minutes divide minutes by 60 gives you hours

MINUTES/I9 = SECONDS/60;
HOURS/I9 = MINUTES/60;
 
Posts: 610 | Location: Dallas, Texas | Registered: May 24, 2004Reply With QuoteEdit or Delete MessageReport This Post
Virtuoso
Posted Hide Post
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
 
Posts: 1188 | Location: San Antonio | Registered: February 28, 2005Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
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>,
 
Posts: 532 | Location: NYC | Registered: January 11, 2005Reply With QuoteEdit or Delete MessageReport This Post
Virtuoso
Posted Hide Post
That Works! Thanks so much...I knew there was some trick out there somewhere.
 
Posts: 1188 | Location: San Antonio | Registered: February 28, 2005Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Seconds Routine

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.