skip to main content
OpenAccess SDK SQL Engine core methods for Java : Exchanging data : Using setVal to Set a Timestamp
 

Using setVal to Set a Timestamp

Use this method to set a value for XO_TYPE_TIMESTAMP column.
void setVal(
int year,
int month,
int day_of_month,
int hour,
int minute,
int second,
int fraction)
Table 98. Parameters for setVal When Setting a Timestamp
Parameter
Type
Description
INPUT
year
int
Years after 0 A.D.
month
int
Months since January - [0,11].
day_of_month
int
Day of the month - [1,31].
hour
int
Hours since midnight - [0,23].
minute
int
Minutes after the hour - [0,59].
second
int
Seconds after the minute - [0,59].
fraction
int
Number of billionths of a second and ranges from 0 - 999999999).
RETURN
NONE