Aug 6, 2007 #1 mbryantuk Programmer Aug 3, 2007 29 GB Hi I have a field storing the amount of seconds to perform an action e.g. 20.25 seconds is it possible to convert this to HH:mm:ss in crystal Thanks
Hi I have a field storing the amount of seconds to perform an action e.g. 20.25 seconds is it possible to convert this to HH:mm:ss in crystal Thanks
Aug 6, 2007 #2 IanWaterman Programmer Jun 26, 2002 3,511 GB use a formula totext(int({secondsfield}/3600),0,"")&':'& totext(int(remainder(({secondsfield}/3600),60)),0,"")&':'& totext(int(remainder(remainder(({secondsfield}/3600),60),60)),0,"") Ian Upvote 0 Downvote
use a formula totext(int({secondsfield}/3600),0,"")&':'& totext(int(remainder(({secondsfield}/3600),60)),0,"")&':'& totext(int(remainder(remainder(({secondsfield}/3600),60),60)),0,"") Ian
Aug 6, 2007 #3 IanWaterman Programmer Jun 26, 2002 3,511 GB sorry that should have been use a formula totext(int({secondsfield}/3600),0,"")&':'& totext(int(remainder(remainder({secondsfield},3600),60)),0,"")&':'& totext(int(remainder(remainder(remainder({secondsfield},3600),60),60)),0,"") Ian Upvote 0 Downvote
sorry that should have been use a formula totext(int({secondsfield}/3600),0,"")&':'& totext(int(remainder(remainder({secondsfield},3600),60)),0,"")&':'& totext(int(remainder(remainder(remainder({secondsfield},3600),60),60)),0,"") Ian
Aug 6, 2007 #4 IanWaterman Programmer Jun 26, 2002 3,511 GB I'll get it right in a minute totext(int(10000/3600),"00",0,"")&':'& totext(int(remainder(10000,3600)/60),"00",0,"")&':'& totext(int(remainder(remainder(10000,3600),60)),"00",0,"") Ian Upvote 0 Downvote
I'll get it right in a minute totext(int(10000/3600),"00",0,"")&':'& totext(int(remainder(10000,3600)/60),"00",0,"")&':'& totext(int(remainder(remainder(10000,3600),60)),"00",0,"") Ian