TzOffset Property  
 

Gets the time zone offset in seconds for the current location.

Syntax

object.TzOffset

Remarks

This property returns an integer which specifies the number of seconds east or west of the prime meridian (UTC). A positive value indicates a time zone that is east of the prime meridian and a negative value indicates a time zone that is west of the prime meridian. For example, the Pacific time zone in the western United States during daylight savings time would have a value of -25200 (7 hours).

Data Type

Integer (Int32)

See Also

LocalTime Property, Timezone Property, TzShortName Property