The util.Interval class / util.Interval methods |
Formats an interval value according to format specification.
util.Interval.format( value INTERVAL q1 TO q2, fmt STRING ) RETURNING res STRING
The util.Interval.format() method formats an INTERVAL value according to the format specification.
The format string must be a combination of place holders such as %Y, %m, %d, as described in Formatting INTERVAL values.
If the source value is NULL the result will be NULL.
IMPORT util MAIN DEFINE iv INTERVAL DAY(6) TO MINUTE LET iv = "-157 11:23" DISPLAY util.Interval.format(iv, "%d %H:%M") END MAIN