|
|||||
function | ymdhms-day-difference |
Other Library Functions |
Library: Date and Time
Include: omdate.xin |
Returns: Numeric
Returns the number of days difference between two given dates. |
define counter function ymdhms-day-difference (value stream a, value stream b)
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 counter 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"
---- |