Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
publicstaticdoubleCalculateTimeZone(
double latitude,
double longitude
)
Parameters
latitudeDouble
The latitude.
longitudeDouble
The longitude.
Return Value
Double
The time zone, in hours, ranging from +12 hours to -12 hours with 0 being GMT.
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.