OptimizationDateTimeParameter.Max
property · OptimizationDateTimeParameter · cAlgo.API Since 5.9
DesktopCLICloud
Gets the inclusive maximum of the range.
Environment behaviour
CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.
Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.
Definition
public DateTime Max {get;}
optimizationDateTimeParameter.Max: DateTime
Returns DateTime
Examples
var parameter = new OptimizationDateTimeParameter("SessionStart", new DateTime(2025, 1, 1, 6, 0, 0), new DateTime(2025, 1, 1, 12, 0, 0), TimeSpan.FromHours(1));
Print("Range ends at {0}", parameter.Max);
from System import DateTime, TimeSpan
parameter = OptimizationDateTimeParameter("SessionStart", DateTime(2025, 1, 1, 6, 0, 0), DateTime(2025, 1, 1, 12, 0, 0), TimeSpan.FromHours(1))
api.Print(f"Range ends at {parameter.Max}")