RobotAttribute.TimeZone
property · RobotAttribute · cAlgo.API
DesktopCLICloud
Sets the timezone for all the robot or indicator datetime references
Definition
public string TimeZone {get; set;}
robotAttribute.TimeZone: str
Returns string
Examples
public partial class NewsRobot : Robot
{
protected override void OnStart()
{
Print("New York time: {0}", Server.Time);
}
}
def on_start(self):
api.Print(f"New York time: {api.Server.Time}")
{
"AccessRights": "None",
"TimeZone": "Eastern Standard Time"
}