TimeZone (NotesDateTime - LotusScript®)

Read-only. An integer representing the time zone of a date-time. In many cases, but not all, this integer indicates the number of hours which must be added to the time to get Greenwich Mean Time. May be positive or negative.

Defined in

NotesDateTime

Data type

Integer

Syntax

To get: zone% = notesDateTime .TimeZone

Usage

When you create a new NotesDateTime object, this property gets set according to the time zone setting of the computer on which the script runs.

The property is not set and returns 0 if the NotesDateTime object does not include both a time and a date.

When you access a date-time value from an item in a document using the DateTimeValue property in NotesItem, this property gets set according to the time zone stored in the item.

Example