util.Interval methods

Methods for the util.Interval class.

Table 1. Class methods
Name Description
util.Interval.format(
   t INTERVAL q1 TO q2,
   format STRING
)
  RETURNS STRING
Formats an interval value based on a specified format.
util.Interval.parse(
  s STRING,
  format STRING
)
  RETURNS DATETIME q1 TO q2
Converts a string to a DATETIME value based on a specified format.