|        | |||||
|  | |||||
| function | round-down-ymdhms | ||||
| Other Library Functions | 
| Library: Date and Time Include: omdate.xin | Returns: String Returns the specified date/time rounded down to the nearest indicated interval. | 
  define stream function round-down-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 down to the beginning of an interval indicated by the second argument.
Arguments:
Example:
  process
     local stream now
     set now to now-as-ymdhms
     output "Now, rounded down to the minute = " || round-down-ymdhms now to "mi" || "%n"
| ---- |