If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Convert number to minutes

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-19-09, 19:04
al91206 al91206 is offline
Registered User
 
Join Date: Mar 2009
Posts: 6
Convert number to minutes

We have a column that gives us a number. That number is actually number of minutes for our call center.

We would like to display the number in a HH:MMS format if possible.

Any ideas - we were thinking of the EXTEND function, but I'm not getting the syntax correct.

Thanks!

Al
Reply With Quote
  #2 (permalink)  
Old 03-20-09, 07:44
stanislav.ondac stanislav.ondac is offline
Registered User
 
Join Date: Aug 2005
Posts: 140
I'm not sure, if I understand, what are you trying.

If you have information only about minutes, how do you want to get information about seconds?
Reply With Quote
  #3 (permalink)  
Old 03-20-09, 12:34
al91206 al91206 is offline
Registered User
 
Join Date: Mar 2009
Posts: 6
You're right! Sorry about that....

Here is a better and clearer explanation:

This is for a call center report. The columns come in as a number which indicates number of minutes - so that is fine. Then though we have calculated fields like Avg Call Answer Time, etc.

Then we'll have a decimal - like 5.9 and I would like to convert that to MMS - there won't be any results w/ hours so having hours display is not necessary. I think this makes more sense.
Reply With Quote
  #4 (permalink)  
Old 03-23-09, 16:43
ibm.ids ibm.ids is offline
Registered User
 
Join Date: Nov 2008
Posts: 64
5.9::INT would be minutes (cast operator)
((5.9-(5.9::INT))*60)::INT would be seconds

Isn't math great?
HTH
Reply With Quote
  #5 (permalink)  
Old 03-23-09, 17:19
al91206 al91206 is offline
Registered User
 
Join Date: Mar 2009
Posts: 6
Thanks for reply

Thanks I'll try this out. Math is great - I'll second that opinion.

Last edited by al91206; 03-23-09 at 17:23.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On