Tom

  Will something like this work for you

Buddy

 

  SET VAR vstartminutes INTEGER

  SET VAR vhours INTEGER

  SET VAR vminutes INTEGER

 

  SET VAR vstartminutes = 100

  SET VAR vhours = (.vstartminutes / 60)

  SET VAR vminutes = (MOD(.vstartminutes,60))

 

  IF vhours > 1 THEN

    SET VAR vshowtimehour = ('Hours')

  ELSE

    SET VAR vshowtimehour = ('Hour')

  ENDIF

 

  SET VAR vshowhourminutes = ((CTXT(.vhours) & .vshowtimehour & 
(CTXT(.vminutes)) & 'Minutes'))

 

  PAUSE 2 USI .vshowhourminutes

 

  RETURN

 

 

 

From: [email protected] [mailto:[email protected]] On Behalf Of 
Tom Hart
Sent: Monday, January 30, 2017 7:38 PM
To: [email protected]
Subject: [RBASE-L] - Time question

 

Is there a way to convert and integer/real to time.  Here is what I want to do

I want to calculate waiting time for customers, so if I know the waiting time 
for each customer is 20 min and the 5th customer wants to know how long the 
wait I can get to the wait is 100 min but how can I convert to a time so it 
would show

1 hr 40 min

 

Tom Hart

-- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected] 
<mailto:[email protected]> .
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to