contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
function   add-to-ymdhms    
      Other Library Functions  

Library: Date and Time
Include: omdate.xin
Returns: String

Returns the modified date/time in "YYYYMMDDhhmmss+ZHZM" format.

Declaration

  define stream function add-to-ymdhms
                          value stream ymdhms
                   years value counter years-to-add optional initial {0}
                  months value counter months-to-add optional initial {0}
                    days value counter days-to-add optional initial {0}
                   hours value counter hours-to-add optional initial {0}
                 minutes value counter minutes-to-add optional initial {0}
                 seconds value counter seconds-to-add optional initial {0}


Purpose

This function takes a date/time in "YYYYMMDDhhmmss+ZHZM" format and any number of values to add or subtract from the given date/time. After the new date/time has been calculated, it is returned in "YYYYMMDDhhmmss+ZHZM" format.

Arguments:

Note that all except the "ymdhms" argument are optional, and that the default value of all optional arguments is 0 (zero).

Example:

  process
     local stream t100
     set t100 to add-to-ymdhms now-as-ymdhms hours 100
     output "Now + 100 hours = " || t100 || "%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 [CONTENTS] [CONCEPTS] [SYNTAX] [LIBRARIES] [SAMPLES] [ERRORS] [INDEX]

Generated: April 21, 1999 at 2:01:02 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-1999.