swirl Guide to OmniMark 6   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
      Other Library Functions  
function   round-down-ymdhms   Available in:
Professional
Enterprise

Library: omdate - date and time functions
Include: omdate.xin
Return type: String
Returns:       

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


Declaration

  define stream function round-down-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 down to the beginning of an interval indicated by the second argument.

Arguments:

Example:

  include "omdate.xin"
  process
     local stream now
     set now to now-as-ymdhms
      output "Now, unrounded                  = "
         || now
         || "%n"
         || "Now, rounded down to the minute = "
         || round-down-ymdhms now to "mi"
         || "%n"
  ; Results of this program were:
  ;    Now, unrounded                            = 20010215162804-0500
  ;    Now, rounded down to the minute = 20010215162800-0500

        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 ] [ OMX ] [ ERRORS ]

OmniMark 6.5 Documentation Generated: December 23, 2002 at 6:25:38 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-2002.