The util.Datetime class / util.Datetime methods |
Converts a number of seconds since Epoch to a datetime.
util.Datetime.fromSecondsSinceEpoch( seconds FLOAT ) RETURNING local DATETIME q1 TO q2
The util.Datetime.fromSecondsSinceEpoch() method converts the number of seconds since the Unix Epoch (1970-01-01 00:00:00 GMT) passed as parameter, to a DATETIME value, in the local time.
IMPORT util MAIN DEFINE dt DATETIME YEAR TO SECOND LET dt = util.Datetime.fromSecondsSinceEpoch( 9876234 ) DISPLAY dt END MAIN