RDOTimezone object

 

RDOTimezone object represents information for a time zone as supported by Windows.

 

Returned by:

RDOTimezones.CurrentTimezone, RDOTimezones.Item, RDOAppointmentItem.StartTimeZone, RDOAppointmentItem.EndTimeZone

 

The example below displays the name of the current time zone.

set Session = CreateObject("Redemption.RDOSession")
MsgBox "The current Time Zone is" & vbCrLf & Session.Timezones.CurrentTimezone.Name

 

Properties

Methods

 

 


Derived from: IDispatch


Properties


Bias

Integer, read-only. Returns the difference in minutes between the local time in this time zone and the Coordinated Universal Time (UTC).

Bias does not take into account any time offset for daylight time or standard time in the time zone. To account for any daylight time offset, use DaylightBias property.

 

 

DaylightBias

Integer, read-only. Returns the time offset in minutes from Bias to account for daylight time in the time zone.

 

 

DaylightDate

Date, read-only. Returns the date and time when time changes over to daylight time in the current year.

To retrieve the daylight date for a specific year, use the DaylightDateForYear() method (see below).

 

 

DaylightDesignation

String, read-only. Returns the daylight name of the time zone.

 

 

ID

String, read-only. Returns the unique id of the time zone.

 

 

Name

String, read-only. Returns the identifier of the time zone.

 

 

StandardBias

Integer, read-only. Returns the time offset in minutes from Bias to account for starndard time in the time zone.

 

 

StandardDate

Date, read-only. Returns the date and time when time changes over to standard time in the current year.

To retrieve the daylight date for a specific year, use the StandardDateForYear() method (see below).

 

 

StandardDesignation

String, read-only. Returns the standard name of the time zone.

 

 

ObservesDaylight

Boolean, read-only. TRUE is the time zone observes daylight savings time.

 

 


Methods


LocalTimeToUTC(Value)

Converts a date-time value from the time zone to Coordinated Universal Time (UTC).

 

Value - date-time

 
 

DaylightDateForYear(YearOrDate)

Returns the date and time when time changes over to daylight time in the given year.

 

YearOrDate - variant. Either an integer (e.g. 2007) or DateTime (e.g. #2007/10/12#).

 

set Session = CreateObject("Redemption.RDOSession")
set TZ = Session.Timezones.Item("Eastern Standard Time")
MsgBox TZ.DaylightDateForYear(2002)

 

StandardDateForYear(YearOrDate)

Returns the date and time when time changes over to standard time in the given year.

 

YearOrDate - variant. Either an integer (e.g. 2007) or DateTime (e.g. #2007/10/12#).

 

set Session = CreateObject("Redemption.RDOSession")
set TZ = Session.Timezones.Item("Eastern Standard Time")
vDate = #1/2/2008#
MsgBox TZ.StandardDateForYear(vDate)

 

UTCToLocalTime(Value)

Converts a date-time value that is specified in the Coordinated Universal Time (UTC) format to the value in the time zone.

 

Value - date-time