Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

ConnectedTime

Returns the date and time of the last successful connection to the server.

If no successful connection has been made yet, returns 30.12.1899 (equivalent to 0 in Delphi’s TDateTime format).

Возвращает дату и время последнего успешного подключения к серверу.

Если успешного подключения ещё не было, возвращает 30.12.1899 (эквивалент 0 в формате TDateTime Delphi).

Pascal

function ConnectedTime: TDateTime;

Python

def ConnectedTime() -> datetime: ...

Pascal Example

begin
  AddToSystemJournal('Connected since: ' + DateTimeToStr(ConnectedTime));
end.

Python Example

AddToSystemJournal(f'Connected since: {ConnectedTime()}')

See Also

Connected, DisconnectedTime