java.sql
Class Time
java.lang.Object
|
+--java.util.Date
|
+--java.sql.Time
public class
Timeextends
Date This class is a wrapper around java.util.Date to allow the JDBC
driver to identify the value as a SQL Time.
Author:- Aaron M. Renn (arenn@urbanophile.com)
Time(int hour, int minute, int second)
|
Time(long date)
|
Time
public Time(int hour, int minute, int second)
This method initializes a new instance of this class with the
specified year, month, and day.
Parameters:
Time
public Time(long date)
This method initializes a new instance of this class with the
specified time value representing the number of seconds since
Jan 1, 1970 at 12:00 midnight GMT.
Parameters:
toString
public String toString()
This method returns this date in JDBC format.
Returns:
valueOf
public static Time valueOf(java.lang.String str)
This method returns a new instance of this class by parsing a
date in JDBC format into a Java date.
Parameters:
Returns:
- The resulting
java.sql.Time
value.