Use this routine to get the UNC time (GMT) from the Time and Frequency Division of the National Institute of Standards and Technology (NIST), with the approprate correction for the current timezone.

perform "_mhgetnistlocal"


The result is formatted as: d/m/yyyy h:mm:ss. (eg: 7/1/2002 4:07:09).

The UNC value will be acurate regardless of the client computer's clock or any other network clock. The timezone correction is taken from the current Windows system timezone.


This function is available only on Windows platforms supported by Uniface. See MHNISTTIME for a version which is available for Unix and Windows.

The official web site of NIST is:

This service should not be used to measure frequency or time interval.

Alternative Signature Definition (Uniface 7.2/8.2):

int getnistlocal(unsigned char *nistlocalstr)
$Revision: 1.7 $ $Date: 2011/02/28 02:56:32 $[go to top]