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 INTERVAL q1 TO q2
Converts a string to an INTERVAL value based on a specified format.