Date and Time Datatypes

jConnect for JDBC supports the Adaptive Server datetime, smalldatetime, bigdatetime, bigtime, date, and time datatypes:

  • datetime can hold dates between January 1, 1753 and December 31, 9999 that are accurate to 1/300 second on platforms that support this level of granularity.

  • smalldatetime can hold dates from January 1, 1900 to June 6, 2079, with accuracy to the minute.

  • bigdatetime indicates the number of microseconds that have passed since January 1, 0000 0:00:00.000000. The range of legal bigdatetime values is from January 1, 0001 00:00:00.000000 to December 31, 9999 23:59:59.999999.

  • bigtime indicates the number of microseconds that have passed since the beginning of the day. The range of legal bigtime values is from 00:00:00.000000 to 23:59:59.999999.

  • date can hold dates from January 1, 0001 to December 31, 9999, exactly matching the allowable values in java.sql.Date. A direct mapping exists between java.sql.Date and the date datatype.

  • time can hold time between 00:00:00:000 and 23:59:59:990. A direct mapping exists between java.sql.Time and the time datatype.