Skip Headers

Oracle® Objects for OLE Developer's Guide
10g Release 1 (10.1)

Part Number B10118-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Master Index
Master Index
Go to Feedback page
Feedback

ToOraTimeStamp (OraTimeStampTZ) Method

Applies To

OraTimeStampTZ Object

Description

Returns a copy of the OraTimeStamp object that has the date time value in the specified time zone of the current OraTimeStampTZ object.

Returns a copy of the OraTimeStamp from an OraTimeStampTZ.

Arguments

None.

Usage

Set OraTimeStampObj = OraTimeStampTZObj.ToOraTimeStamp

Remarks

Returns a new OraTimeStamp object that has the date time values in the specified time zone of the current OraTimeStampTZ object.

Example

Dim OraTimeStampTZ As OraTimeStampTZ

...

'Create OraTimeStampTZ using a string

Set OraTimeStampTZ = OraSession.CreateOraTimeStampTZ("2000-12-28

    12:10:23.444 -07:00", "YYYY-MM-DD HH:MI:SS.FF TZH:TZM")

'returns a new OraTimeStamp object with date value equal to

' "2000-12-28 12:10:23.444"

'note that Time Zone portion is dropped

Set OraTimeStamp = OraTimeStampTZ.ToOraTimeStamp