Description
This .NET function wraps the the AcDbDatabase::setTimeZoneAsUtcOffset() ObjectARX function.
Sets the current time zone for this database using an offset from UTC (GMT). For example, the offset for the Pacific Time Zone is -8.0.
Returns the time zone chosen and set through the offset. When there are multiple time zones with the same offset, the first time zone found is used.
Visual Basic
Public Function SetTimeZoneAsUtcOffset( offset As double ) As Autodesk.AutoCAD.DatabaseServices.TimeZone
C#
public Autodesk.AutoCAD.DatabaseServices.TimeZone SetTimeZoneAsUtcOffset( double offset );
Parameters
| Parameters | Description |
|---|---|
| double offset | Input the offset, in hours |
Exceptions
Exceptions |
Description |
validInput |
Thrown if a valid time zone is not found |
Notes
The valid range is -12.0 to 13.0, though the offset must match a known time zone (defined in the TimeZone enum).