OV_DATETIME_DIFF

LANSA

OV_DATETIME_DIFF
Calculating Time DifferencesTo Execute this ExampleThe Things that Make Up this Example


  

   Category        : Other vendor built-in functions
   --------
   Function name   : OV_DATETIME_DIFF
   -------------
   Function No     : 937
   -----------
   DLL Required    : OV_P937.DLL or process/function SET_165/OV@P937 
   ------------
   Description     : The difference between two date-times in seconds
   -----------
   Availability    : Windows       -> YES
                     Unix          -> NO
                     OS/400        -> YES
   ARGUMENTS
   ---------

          Type  Required/                                   Length  Decimals
   Number  A/N  Optional Description                        Min Max Min Max
   ------  ---  -------- -----------                        ------- -------

     1     N     Req     The date from                        6   8   0   0

     2     A     Req     The format of the date from          1  20   
                         A, B, D, F, H, J, L, V,
                         SYSTEM, SYSTEM8, SYSFMT,
                         DDMMYY, YYMMDD, MMDDYY,
                         DDMMYYYY, YYYYMMDD, MMDDYYYY,
                         SYSTEM8, SYSFMT8. 

     3     N     Req     The time from                        6   6   0   0
                         (format HHMMSS)    

     4     N     Req     The date to                          6   8   0   0

     5     A     Req     The format of the date to            1  20   
                         A, B, D, F, H, J, L, V,
                         SYSTEM, SYSTEM8, SYSFMT,
                         DDMMYY, YYMMDD, MMDDYY,
                         DDMMYYYY, YYYYMMDD, MMDDYYYY,
                         SYSTEM8, SYSFMT8. 
 
     6     N     Req     The time to                          6   6   0   0
                         (format HHMMSS)    



   RETURN VALUES
   -------------

          Type  Required/                                   Length  Decimals
   Number  A/N  Optional Description                        Min Max Min Max
   ------  ---  -------- -----------                        ------- -------

     1     N     Req     The time difference in seconds      15   1   0   0  
                         (can be negative), 0 if unable
                         to calculate. 

     2     A     Opt     Return value indicating if the       2   2
                         calculation was successful.
                         'OK' = calculation was successful
                         'ER' = calculation was unsuccessful