|        | |||||
|  | |||||
| 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. | 
  define stream function round-up-ymdhms value stream ymdhms
                                      to value stream interval
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"
| ---- |