|
||||||||||
|
|
||||||||||
| Other Library Functions | ||||||||||
| function | ymdhms-second-difference |
|
Library: omdate - date and time functions
Include: omdate.xin |
Return type: Integer Returns: Returns the number of seconds difference between two specified dates. |
define integer function ymdhms-second-difference
(value stream a, value stream b)
This function takes two date/time strings and returns the number of seconds difference between them. The two dates can be in different time zones.
Arguments:
Example:
process
local integer elapsed-seconds
set elapsed-seconds to ymdhms-second-difference ("19710401080000+0000", "19980416155545+0500")
output "%d(elapsed-seconds) seconds have elapsed between the specified dates/times.%n"
| ---- |