util.Interval methods

Methods for the util.Interval class.

Table 1. Class methods
Name Description
util.Interval.format(
   value INTERVAL q1 TO q2,
   fmt STRING
)
  RETURNING res STRING
Formats an interval value according to format specification.
util.Interval.parse(
  src STRING,
  fmt STRING
)
  RETURNING res DATETIME q1 TO q2
Converts a string to a DATETIME value according to a format specification.