util.Datetime methods

Methods for the util.Datetime class.

Table 1. Class methods
Name Description
util.Datetime.toLocalTime(
  utc_datetime DATETIME q1 TO q2
 )
  RETURNING local_datetime DATETIME q1 TO q2
Converts a UTC datetime to the local time.
util.Datetime.toUTC(
   local_datetime DATETIME q1 TO q2
)
  RETURNING utc_datetime DATETIME q1 TO q2
Converts a datetime value to the UTC datetime.