IMetabase.GetCurrentStampMS

Syntax

GetCurrentStampMS: DatetTime;

GetCurrentStampMS: DatetTime;

Description

The GetCurrentStampMS method returns the current date and time of DBMS server, which hosts the repository, up to milliseconds.

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.GetCurrentStampMS;
    Debug.WriteLine(CI.FormatTimeEx(d, 
"H:mm:s.fff"));
End Sub UserProc;

Imports Prognoz.Platform.Interop.ForeSystem;
Imports Prognoz.Platform.Interop.Metabase;

Public Shared Sub Main(Params: StartParams);
Var
    Mb: IMetabase;
    CIClass: CultureInfoClass = 
New CultureInfoClassClass();
    CI: CultureInfo;
    d: DateTime;
Begin
    Mb := Params.Metabase;
    CI := CIClass.Current;
    d := Mb.GetCurrentStampMS();
    System.Diagnostics.Debug.WriteLine(CI.FormatTimeEx(d, 
"H:mm:s.fff"));
End Sub;

After executing the example, the development environment console displays the current time of DBMS server up to milliseconds.

See also:

IMetabase