RVTDocs.com

SunAndShadowSettings.CalculateTimeZone

Method
Description:
Use Revit's utilities to calculate the time zone for a given longitude and latitude.
Remarks:
For some latitude and longitude boundary cases, the time zone calculated may not be correct. The API offers the ability to adjust the time zone independent of Revit's calculations for situations where this happens.
Syntax
public static double CalculateTimeZone(
	double latitude,
	double longitude
)
Parameters
Parameter Type Description
latitude Double The latitude.
longitude Double The longitude.
Return Value
Type Description
Double The time zone, in hours, ranging from +12 hours to -12 hours with 0 being GMT.