Kbase P161563: Is it possible to use milliseconds in 4GL/ABL?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  07/01/2011 |
|
Status: Unverified
GOAL:
Is it possible to use milliseconds in 4GL/ABL?
GOAL:
How to manipulate date and time separately
GOAL:
Is there a way to get date and time using ABL/4GL
FACT(s) (Environment):
All Supported Operating Systems
OpenEdge Category: Language (4GL/ABL)
OpenEdge 10.x
FIX:
Yes. It is possible to use milliseconds with DATETIME data type. This example shows how to extract milliseconds from a DATETIME. The message will display 90000 milliseconds which is 15 minutes.
DEFINE VARIABLE startTime AS DATETIME INIT "01-01-2002 07:00:00" NO-UNDO.
DEFINE VARIABLE endTime AS DATETIME INIT "01-01-2002 07:15:00" NO-UNDO.
DEFINE VARIABLE i AS INT64 NO-UNDO.
DISP startTime endTime.
i = INTERVAL( endTime, startTime,"milliseconds").
MESSAGE i VIEW-AS ALERT-BOX INFO BUTTONS OK.