swirl Guide to OmniMark 5   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
      Other Library Functions  
function   ymdhms-day-difference    

Library: omdate - date and time functions
Include: omdate.xin
Return type: Integer
Returns:       

Returns the number of days difference between two given dates.


Declaration

  define integer function ymdhms-day-difference
                (value stream a, value stream b)


Purpose

This function takes two dates and returns a signed value representing the number of days difference between them. The result is rounded down to the largest number of days less than or equal to the difference. The date/times can be in different time zones.

Arguments:

Example:

  process
     local integer elapsed-days
     set elapsed-days to ymdhms-day-difference ("19710401080000+0000", "19980416155545+0500")
     output "%d(elapsed-days) days have elapsed between the specified dates/times.%n"

        Other Library Functions
   add-to-ymdhms
   arpadate-to-ymdhms
   format-ymdhms
   now-as-ymdhms
   round-down-ymdhms
   round-up-ymdhms
   ymd-weekday
   ymdhms-adjust-time-zone
   ymdhms-day-difference
   ymdhms-julian-day-count
   ymdhms-month-difference
   ymdhms-second-difference
   ymdhms-to-arpadate
 
----  

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ OMX ] [ OMX ] [ ERRORS ]

Generated: August 11, 2000 at 3:08:13 pm
If you have any comments about this section of the documentation, send email to docerrors@omnimark.com

Copyright © OmniMark Technologies Corporation, 1988-2000.