TimeZone --Second Post

Hi ALL,

I have field in a document that stores some info like…

Created by xx on 28/05/2004 16:46:33

Tested by yy on 28/05/2004 16:56:00

and so on…

I was wounder if there is any way using lotus script i can append time zones also with this date time info. so that the information loook like this…

Created by xx on 28/05/2004 16:46:33 CEDT

Tested by yy on 28/05/2004 16:56:00 GMT

Subject: TimeZone --Second Post

It is a property of the NotesDateTime object.

From the Notes Designer help:

TimeZone property

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.

Subject: RE: TimeZone --Second Post

However, this returns (usually) the GMT offset value rather than a named zone.

Subject: RE: TimeZone --Second Post

yeah, true, so you’d have to convert that to an actual time zone.