The Datetime class / util.Datetime methods |
Converts a datetime value to the UTC datetime.
util.Datetime.toUTC( local_datetime DATETIME q1 TO q2 ) RETURNING utc_datetime DATETIME q1 TO q2
IMPORT util MAIN DEFINE utc DATETIME YEAR TO SECOND LET utc = util.Datetime.toUTC( CURRENT YEAR TO SECOND ) DISPLAY utc END MAIN