contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
function   round-up-ymdhms    
      Other Library Functions  

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

Returns a specified date/time rounded up to the nearest indicated interval.

Declaration

  define stream function round-up-ymdhms value stream ymdhms
                                      to value stream interval


Purpose

This function takes a date/time in "YYYYMMDDhhmmss+ZHZM" format and returns the same value, but rounded up to the end of an interval as indicated by the second argument.

Arguments:

Example:

  process
     local stream now
     set now to now-as-ymdhms
     output "Now, rounded up to the minute = " || round-up-ymdhms now to "mi" || "%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:15 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-1999.