[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Time (seconds past midnight)

  • Thread starter Thread starter bstaunton
  • Start date Start date
Status
Not open for further replies.
B

bstaunton

Guest
I think this would work DEFINE VARIABLE theTimeHours AS INTEGER NO-UNDO. DEFINE VARIABLE theTimeMinutes AS INTEGER NO-UNDO. theTimeHours = TRUNCATE(TIME / 3600,0). /* To get the current hour e.g 12pm */ theTimeMinutes = (TIME / 60) MODULO 60. /* To get the remainder of minutes after the hour */ DISPLAY SUBSTITUTE("&1:&2",theTimeHours,theTimeMinutes).

Continue reading...
 
Status
Not open for further replies.
Back
Top