Skip to content

Plugin.Time

property · Plugin · cAlgo.API

DesktopCLICloud

Returns the current server time. The shortcut to the Server.Time property.

Environment behaviour

CLI — not supported. Plugins cannot run in the CLI: ctrader-cli runs cBots only.

Cloud — not supported. Plugins cannot run in the cloud: it runs cBots only.

Definition

public DateTime Time {get;}
api.Time: DateTime

Returns DateTime

Examples

Print("The Server Time is: {0}", Time);
print(f"The Server Time is: {api.Time}")