Reference > DSTStyle Object > DSTStyle Object Properties > TimeOffset Property (DSTStyle) |
TimeOffset Property (DSTStyle)
Sets/returns the time offset of the Daylight Savings Time (DST) from the Standard Time.
object.TimeOffset= integer
Read/Write at run time. Not available at design time.
0 - 120 (60 is the default)
You can use this property to set the offset of the Daylight Savings Time from the Standard Time. This property is determined in minutes.
Dim objTZ As New TDBTZoneX6Lib.TDBTZoneX
Dim DSTS As TDBTZoneX6Lib.DSTStyle
' Add a new DSTStyle object
Set DSTS = objTZ.DSTStyles.Add(, "CN")
' Automatically adjust 2 hours for DST changes
DSTS.TimeOffset = 120
If set to 0, the DST changes will be disabled completely and all times will return as Standard Time.
See Also
EndWhichWeek Property (DSTStyle)
EndWeekday Property (DSTStyle)
StartMonth Property (DSTStyle)