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: 22.0.0.0 (22.1.1.0)
Since:
2012
Syntax
| C# |
|---|
public static double CalculateTimeZone(
double latitude,
double longitude
) |
| Visual Basic |
|---|
Public Shared Function CalculateTimeZone ( _
latitude As Double, _
longitude As Double _
) As Double |
| Visual C++ |
|---|
public:
static double CalculateTimeZone(
double latitude,
double longitude
) |
Parameters
- latitude
- Type: System..::..Double
The latitude.
- longitude
- Type: System..::..Double
The longitude.
Return Value
The time zone, in hours, ranging from +12 hours to -12 hours with 0 being GMT.
Remarks
See Also