10.12.2012 Views

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Timestamp Class<br />

Timestamp Class<br />

This class conforms to the SQL92 TIMESTAMP and TIMESTAMPTZ types.<br />

OCCI expects the SQL data type corresponding to the Timestamp class to be of<br />

type TIMESTAMP WITH TIME ZONE.<br />

Timestamp(const Environment *env,<br />

int year = 1,<br />

unsigned int month = 1,<br />

unsigned int day = 1,<br />

unsigned int hour = 0,<br />

unsigned int min = 0,<br />

unsigned int sec = 0,<br />

unsigned int fs = 0,<br />

int tzhour = 0<br />

int tzmin=0<br />

A SQLException will occur if a parameter is out of range.<br />

year - -4713 to 9999<br />

month 1 to 12<br />

day - 1 to 31<br />

hour - 0 to 23<br />

min - 0 to 59<br />

sec - 0 to 61<br />

tzhour - -12 to 14<br />

tzmin - -59 to 59<br />

Returns a null Timestamp object. A null timestamp can be initialized by<br />

assignment or calling the fromText method. Methods that can be called on null<br />

timestamp objects are setNull, isNull and operator=().<br />

Timestamp();<br />

Assigns the values found in a.<br />

Timestamp(const Timestamp &src);<br />

8-214 <strong>Oracle</strong> <strong>C++</strong> <strong>Call</strong> <strong>Interface</strong> Programmer’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!