The tm_get and date_get statements are used to get the system date and time.
The tm_get statement takes 3 arguments hour, minute, second and the date_get statement day month year.
//---------------------------------------
// File: TimeAndDate.e
//---------------------------------------
//---------------------------------------
// Block: go
//---------------------------------------
block Go
KeyVal = 0x00
OldSecond = 0
while KeyVal == 0
//get time
tm_get @Time
//get date
date_get @Date
//wait for the second to change
if OldSecond != Time.Sec
OldSecond = Time.Sec
outl Time.Hour ":" Time.Min ":" Time.Sec " " Date.Day "/" Date.Mon "/" Date.Yr
_if
key_in KeyVal
_while
_block