util.Datetime.toUTC

Converts a datetime value to the UTC datetime.

Syntax

util.Datetime.toUTC(
   local_datetime DATETIME q1 TO q2
)
  RETURNING utc_datetime DATETIME q1 TO q2

Usage

The util.Datetime.toUTC() method converts the DATETIME value passed as parameter to the "Coordinated Universal Time" (UTC), also known as "Greenwich Mean Time" (GMT).
IMPORT util
MAIN
    DEFINE utc DATETIME YEAR TO SECOND
    LET utc = util.Datetime.toUTC( CURRENT YEAR TO SECOND )
    DISPLAY utc
END MAIN