swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
      Other Library Functions  
function  

ymdhms-second-difference

 
 

Library: General, Date and time functions (OMDATE)
Include: omdate.xin
Return type: Integer
Returns: 

Returns the number of seconds difference between two specified dates.


Declaration

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


Purpose

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:

  include "omdate.xin"
  process
     local integer elapsed-seconds
     set elapsed-seconds to ymdhms-second-difference("19980416155545+0500", "19710401080000+0000")
     output "%d(elapsed-seconds) seconds have elapsed between the specified dates/times.%n"
  ; Result of this code:
  ; 853383345 seconds have elapsed between the specified dates/times.  

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

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

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:46:09 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.