public class DBTime
extends java.sql.Time
| Constructor and Description |
|---|
DBTime() |
DBTime(java.util.Date time)
Sets the YEAR, MONTH, DAY to current date values
|
DBTime(int hour,
int minute,
int second) |
DBTime(long time) |
DBTime(java.lang.String timeStr) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
after(java.util.Date when) |
boolean |
before(java.util.Date when) |
boolean |
equals(java.lang.Object obj)
Compares the fields DAY_OF_WEEK, MONTH, YEAR, HOUR_OF_DAY, MINUTE, SECOND.
|
static java.text.DateFormat |
getFormat() |
static java.lang.String |
getFormatString() |
static DBTime |
parseTimeValue(java.lang.String timeStr)
Parses the timeStr to create a java.util.Date instance with correct time information
|
static java.lang.String |
toNeutralFormat(java.util.Date time)
Formats the time value according to 'HH:mm:ss'
|
java.lang.String |
toString() |
getDate, getDay, getMonth, getYear, setDate, setMonth, setTime, setYear, valueOfpublic DBTime(long time)
public DBTime()
public DBTime(java.util.Date time)
public DBTime(int hour,
int minute,
int second)
public DBTime(java.lang.String timeStr)
public boolean equals(java.lang.Object obj)
equals in class java.util.Datepublic boolean before(java.util.Date when)
before in class java.util.Datepublic boolean after(java.util.Date when)
after in class java.util.Datepublic java.lang.String toString()
toString in class java.sql.Timepublic static java.lang.String getFormatString()
public static java.text.DateFormat getFormat()
public static DBTime parseTimeValue(java.lang.String timeStr) throws java.text.ParseException
java.text.ParseExceptionpublic static java.lang.String toNeutralFormat(java.util.Date time)
Copyright © 2014 EsprIT-Systems. All Rights Reserved.