public class MustTime
extends java.sql.Time
Constructor and Description |
---|
MustTime(int time)
Constructor for MustTime.
|
MustTime(int hour,
int minute)
Constructor for MustTime.
|
MustTime(int hour,
int minute,
int second)
Constructor for MustTime.
|
MustTime(java.lang.String hour,
java.lang.String minute)
Constructor for MustTime.
|
MustTime(java.lang.String hour,
java.lang.String minute,
java.lang.String second)
Constructor for MustTime.
|
Modifier and Type | Method and Description |
---|---|
static int |
getIntegerEquivalent(java.sql.Time time)
Returns the integer equivalent of the specified time in an eloquent way -
not a millisecond value.
|
static java.lang.String |
getJDBCEscapeFormat(int hour,
int minute,
int second)
Returns the JDBC escape Format of a time.
|
static java.sql.Time |
valueOfEloquentInteger(int eloquentInteger)
Returns the time given by an eloquent integer, e.g. 235959
|
getDate, getDay, getMonth, getYear, setDate, setMonth, setTime, setYear, toInstant, toLocalTime, toString, valueOf, valueOf
public MustTime(java.lang.String hour, java.lang.String minute)
hour
- the hourminute
- the minutepublic MustTime(java.lang.String hour, java.lang.String minute, java.lang.String second)
hour
- the hour of the timeminute
- the minute of the timesecond
- the second of the timepublic MustTime(int hour, int minute)
hour
- the hourminute
- the minutepublic MustTime(int hour, int minute, int second)
hour
- the hour of the timeminute
- the minute of the timesecond
- the second of the timepublic MustTime(int time)
time
- the time in format hhmmsspublic static java.lang.String getJDBCEscapeFormat(int hour, int minute, int second)
hour
- the hour of the timeminute
- the minute of the timesecond
- the second of the timepublic static java.sql.Time valueOfEloquentInteger(int eloquentInteger)
eloquentInteger
- the eloquent integer, e.g. 235959. This is not a
millisecond value, but three pairs of digits naming hour, minute and seconds.public static int getIntegerEquivalent(java.sql.Time time)
time
- the time to parse.Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de