GetCurrentStamp: DateTime;
GetCurrentStamp(): System.DateTime;
The GetCurrentStamp method returns the current date and time of DBMS server, which hosts the repository.
To execute the example, add a link to the Metabase system assembly.
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.GetCurrentStamp();
System.Diagnostics.Debug.WriteLine(CI.FormatDateTime(d));
End Sub;
After executing the example, the development environment console displays the current date and time of DBMS server.
See also: