Please enable JavaScript to view this site.

A-Shell Development History

Navigation: Version 4.9/5.0, builds 850-998 > 982 - 15 Feb 07

Extended TAB function DATETIME

Scroll Prev Top Next More

New extended TAB function DATETIME returns the system date and time according to the ATE client. The returned information is in the form of date,time,status where date is the decimal value of the separated date format (see IDTIM.SBR for details), time is the number of seconds since midnight, and status will be 0 if the operation was successful, else a Windows error code. For example:

map1 today,b,4

map1 now,b,4

map1 status,f

? tab(-10,AG_DATETIME);chr(127);

input "",today,now,status

 

You might then compare this information against the values returned by the DATE and TIME system functions on the server to decide whether the client is reasonably in sync, and if not, you might prompt the client to update the clock on either the server or the client.