BusinessObjects Board

Convert seconds to HH:MM:SS

Can someone please advise me on how to convert a field which is in seconds to HH:MM:SS.
So, if I have 1000 seconds it will 16:00:40 after it has been converted.

Thank you in advance for any assistance.


Gizmo (BOB member since 2004-11-09)

Hi,

Have a look here:


Marek Chladny :slovakia: (BOB member since 2003-11-27)

Create 3 variables

hh = sec/3600
mm = sec/60
ss = mod(sec,60)

and then use convert these number variables into one required string format.


Rakesh_K :india: (BOB member since 2007-12-11)