The util.Datetime class / util.Datetime methods |
Returns the current date/time in UTC.
util.Datetime.getCurrentAsUTC( ) RETURNING utc DATETIME YEAR TO FRACTION(5)
The util.Datetime.getCurrentAsUTC() method returns the current system date/time in UTC (Universal Time ).
This method is provided to solve the daylight saving time transition issue of the util.Datetime.toUTC() method.
IMPORT util MAIN DEFINE utc DATETIME YEAR TO FRACTION(5) LET utc = util.Datetime.getCurrentAsUTC( ) DISPLAY "Current UTC: ", utc END MAIN