The IfxToJavaDateTime() method

The IfxToJavaDateTime() method converts the HCL OneDB™ DATETIME data type to the Java™ java.sql.Timestamp data type. The conversion path is HCL OneDB to decimal to timestamp.

Method signature

public static java.sql.Timestamp IfxToJavaDateTime (byte b [], short prec)
public static java.sql.Timestamp IfxToJavaDateTime (byte b [], int offset,
    int length, short prec)
public static java.sql.Timestamp IfxToJavaDateTime (byte b [], int offset,
    int length, short prec, Calendar cal)

Input parameters

b
The bytes encoding data
offset
The offset into byte array.
prec
The precision as received from HCL OneDB.
length
The data length.