August 2000
Intermediate to advanced
348 pages
8h 51m
English
Time
Class Name:
java.sql.Time
Superclass: java.util.Date
Immediate Subclasses: None
Interfaces Implemented: None
Availability: JDK 1.1
This version of the java.util.Date class maps to a
SQL TIME datatype.
public class Time extends java.util.Date {
static public Time valueOf(String s);
public Time(int hour, int minute, int second);
public Time(long time);
#public int getDate( );
#public int getDay( );
#public int getMonth( );
#public int getYear( );
#public int setDate(int i);
#public int setMonth(int i);
public void setTime(long time);
#public void setYear(int i);
public String toString( );
}public Time(int hour, int minute, intsecond) public Time(long time)
This constructor creates a new Time object. The
first prototype constructs a Time for the hour,
minute, and seconds specified. The second constructs one based on the
number of seconds since January 1, 1970 12:00:00 GMT.
public int getDate( )
public int getDay( )
public int getMonth( ) public int getYear( ) public int setDate(int i) public int setMonth(int i) public ...
Read now
Unlock full access