Plugin.TimeInUtc
property · Plugin · cAlgo.API
DesktopCLICloud
Returns the current server time in UTC. The shortcut to the Server.TimeInUtc 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 TimeInUtc {get;}
api.TimeInUtc: DateTime
Returns DateTime
Examples
Print("The Server Time in UTC is: {0}", TimeInUtc);
api.Print(f"The Server Time in UTC is: {api.TimeInUtc}")