DATE

Extends oracle.sql.Datum.

This class has many constructors, which can create dates from different types of information:

DATE(  ) 
DATE(byte[] date) 
DATE(java.sql.Date date) 
DATE(java.sql.Date date, java.util.Calendar cal) 
DATE(java.lang.Object obj) 
DATE(java.lang.Object obj, java.util.Calendar cal) 
DATE(java.lang.String str) 
DATE(java.lang.String str, java.util.Calendar cal) -- New with Oracle9i.
DATE(java.sql.Time time) 
DATE(java.sql.Time time, java.util.Calendar cal) 
DATE(java.sql.Timestamp timestamp) 
DATE(java.sql.Timestamp timestamp, java.util.Calendar cal)

Fields

BDA
Static int
BDAL
Static int
BDT
Static int
BHR
Static int
BHRL
Static int
BMN
Static int
BMNL
Static int
BMO
Static int
BMOL
Static int
BSC
Static int
BSCL
Static int
BYR
Static int
BYRL
Static int
HRZER0
Static int
MIZERO
Static int
MSD
Static int
SEZERO
Static int
YR0
Static int

Methods

addJulianDays(int julianDay , int julianSec )

Returns DATE, which is julianDay and julianSec later.

addMonths(int months )

Returns DATE, which is months later.

checkValidity(byte[] date )

Returns int, which is either 0 if valid or a combination of the fields listed earlier to designate the invalid portions of date. Static method.

compareTo(DATE date )

Returns -1 if DATE is less than date, 0 if DATE and date are equal, 1 if DATE is greater than date.

dateValue( )

Returns java.sql.Date of internal Oracle DATE.

dateValue(java.util.Calendar cal )

Returns java.sql.Date ...

Get Oracle in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.