GetCurrentStampMS: DatetTime;
The GetCurrentStampMS method returns the current date and time of DBMS server, which hosts the repository, up to milliseconds.
To execute the example, add a link to the Metabase system assembly.
Sub UserProc;
Var
Mb: IMetabase;
CI: ICultureInfo;
d: DateTime;
Begin
Mb := MetabaseClass.Active;
CI := CultureInfo.Current;
d := Mb.GetCurrentStampMS;
Debug.WriteLine(CI.FormatTimeEx(d, "H:mm:s.fff"));
End Sub UserProc;
After executing the example, the development environment console displays the current time of DBMS server up to milliseconds.
See also: