Skip to content

PluginAttribute.TimeZone

property · PluginAttribute · cAlgo.API

DesktopCLICloud

Sets the timezone for all the Plugin datetime references

Definition

public string TimeZone {get; set;}
pluginAttribute.TimeZone: str

Returns string

Examples

public partial class NewPlugin : Plugin
{
    protected override void OnStart()
    {
        Print("Plugin time zone: {0}", TimeZone.DisplayName);
    }
}
def on_start(self):
    api.Print(f"Plugin time zone: {api.TimeZone.DisplayName}")
{
  "AccessRights": "None",
  "TimeZone": "Eastern Standard Time"
}