パッケージ org.postgresql.util
クラス PGTime
java.lang.Object
java.util.Date
java.sql.Time
org.postgresql.util.PGTime
- すべての実装されたインタフェース:
Serializable
,Cloneable
,Comparable<Date>
This class augments the Java built-in Time to allow for explicit setting of the time zone.
- 関連項目:
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明clone()
boolean
@Nullable Calendar
Returns the calendar object for this time.int
hashCode()
void
setCalendar
(@Nullable Calendar calendar) Sets the calendar object for this time.クラスから継承されたメソッド java.sql.Time
getDate, getDay, getMonth, getYear, setDate, setMonth, setTime, setYear, toInstant, toLocalTime, toString, valueOf, valueOf
クラスから継承されたメソッド java.util.Date
after, before, compareTo, from, getHours, getMinutes, getSeconds, getTime, getTimezoneOffset, parse, setHours, setMinutes, setSeconds, toGMTString, toLocaleString, UTC
-
コンストラクタの詳細
-
PGTime
public PGTime(long time) Constructs aPGTime
without a time zone.- パラメータ:
time
- milliseconds since January 1, 1970, 00:00:00 GMT; a negative number is milliseconds before January 1, 1970, 00:00:00 GMT.- 関連項目:
-
PGTime
Constructs aPGTime
with the given calendar object. The calendar object is optional. If absent, the driver will treat the time astime without time zone
. When present, the driver will treat the time as atime with time zone
using theTimeZone
in the calendar object. Furthermore, this calendar will be used instead of the calendar object passed toPreparedStatement.setTime(int, Time, Calendar)
.- パラメータ:
time
- milliseconds since January 1, 1970, 00:00:00 GMT; a negative number is milliseconds before January 1, 1970, 00:00:00 GMT.calendar
- the calendar object containing the time zone ornull
.- 関連項目:
-
-
メソッドの詳細
-
setCalendar
Sets the calendar object for this time.- パラメータ:
calendar
- the calendar object ornull
.
-
getCalendar
Returns the calendar object for this time.- 戻り値:
- the calendar or
null
.
-
hashCode
public int hashCode() -
equals
-
clone
-