IMetabase.GetCurrentStamp

Syntax

GetCurrentStamp: DateTime;

Description

The GetCurrentStamp method returns the current date and time of DBMS server, which hosts the repository.

Example

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.GetCurrentStamp;
    Debug.WriteLine(CI.FormatDateTime(d));
End Sub UserProc;

After executing the example, the development environment console displays the current date and time of DBMS server.

See also:

IMetabase