public class TimeString
extends java.lang.Object
Constructor and Description |
---|
TimeString(java.lang.String editableTimeString)
Constructs a new time string.
|
TimeString(java.sql.Time theTime)
Constructs a new time string.
|
Modifier and Type | Method and Description |
---|---|
int |
getIntValue() |
java.lang.String |
getSqlCompareString()
Returns the SQL compare variant of this time string
|
java.sql.Time |
getSqlTime()
Returns the time as an SQL time.
|
java.lang.String |
getTimeString() |
static java.lang.String |
getTimeString(java.sql.Time time)
Returns a time string in a HH:MM:SS format.
|
java.lang.String |
getTimeStringIgnoringSeconds()
Returns the time string in a HH:MM format.
|
static java.lang.String |
getTimeStringIgnoringSeconds(java.sql.Time time)
Returns a time string in a HH:MM format.
|
boolean |
isValid()
Returns true if the time is valid.
|
public TimeString(java.lang.String editableTimeString)
editableTimeString
- an editable time string to set the initial valuepublic TimeString(java.sql.Time theTime)
theTime
- am SQL time to set the initial valuepublic boolean isValid()
public java.sql.Time getSqlTime()
public int getIntValue()
public java.lang.String getSqlCompareString()
public java.lang.String getTimeString()
public java.lang.String getTimeStringIgnoringSeconds()
public static java.lang.String getTimeStringIgnoringSeconds(java.sql.Time time)
java.sql.Time
- the time to be formattedpublic static java.lang.String getTimeString(java.sql.Time time)
java.sql.Time
- the time to be formattedCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de