Oracle® Objects for OLE Developer's Guide 11g Release 2 (11.2) for Microsoft Windows Part Number E12245-01 |
|
|
View PDF |
Applies To
Description
Returns a copy of the OraTimeStampTZ
object that has the date-time value normalized to Coordinated Universal Time (UTC) of the current OraTimeStampTZ
object.
Usage
Set OraTimeStampTZObj1 = OraTimeStampTZObj.ToUniversalTime
Remarks
Returns a new OraTimeStampTZ
object that has the date-time values normalized to the UTC of the current OraTimeStampTZ
object.
Note:
UTC was formerly known as Greenwich Mean Time.Examples
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 ...