Skip to content

Plugin.TimeZone

property · Plugin · cAlgo.API

DesktopCLICloud

TimeZone of a Plugin.

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 TimeZoneInfo TimeZone {get;}
api.TimeZone: TimeZoneInfo

Returns TimeZoneInfo

Examples

Print("Plugin time zone: {0}, UTC offset: {1}", TimeZone.DisplayName, TimeZone.BaseUtcOffset);
api.Print(f"Plugin time zone: {api.TimeZone.DisplayName}, UTC offset: {api.TimeZone.BaseUtcOffset}")