Use Revit's utilities to calculate the time zone for a given longitude and latitude.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public static double CalculateTimeZone( double latitude, double longitude )
Parameters
- latitude Double
- The latitude.
- longitude Double
- The longitude.
Return Value
DoubleThe time zone, in hours, ranging from +12 hours to -12 hours with 0 being GMT.