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

ToUniversalTime Method

Applies To

OraTimeStampTZ Object

Description

Returns a copy of the OraTimeStampTZ object that has the date time value normalized to UTC (Coordinated Universal Time) of the current OraTimeStampTZ object.

Arguments

None.

Usage

Set OraTimeStampTZObj1 = OraTimeStampTZObj.ToUniversalTime

Remarks

Returns a new OraTimeStampTZ object that has the date time values normalized to the UTC (Coordinated Universal Time--formerly Greenwich Mean Time) of the current OraTimeStampTZ object.

Example

Dim OraTimeStampTZ As OraTimeStampTZ

Dim OraTimeStampTZ_UTC As OraTimeStampTZ

...

'Create OraTimeStampTZ using a string

Set OraTimeStampTZ = OraSession.CreateOraTimeStampTZ("2003-APR-29

     12:00:00 -07:00", "YYYY-MON-DD HH:MI:SS TZH:TZM")

'returns a new OraTimeStampTZ object with date value normalized to

'UTC time, "2003-APR-29 19:00:00 00:00"

Set OraTimeStampTZ_UTC = OraTimeStampTZ.ToUniversalTime

...