RVTDocs.com

SunAndShadowSettings.EndDateAndTime

Property
Description:
Identifies the end date and time.
Remarks:
This property represents the end time for a single-day or multi-day study. The end date and time can be set for any study type, but is not always used. Note that Revit may ignore this value if the SunriseToSunset flag is set.
Syntax
public DateTime EndDateAndTime { get; set; }
Exceptions
Exception Condition
ArgumentException When setting this property: Revit does not accept input DateTime objects if they are of kind DateTypeKind.Unspecified.