| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private @Nullable Calendar | |
| private @Nullable ZoneOffset | |
| private final Calendar | |
| private static final @Nullable Field | |
| private @Nullable TimeZone | |
| private static final HashMap | |
| private final ResourceLock | |
| private static final LocalDateTime | |
| private static final int | |
| private static final OffsetDateTime | |
| private static final LocalTime | |
| private static final LocalDate | |
| private static final LocalDateTime | |
| private static final OffsetDateTime | |
| private static final char[][] | |
| private static final Duration | |
| private static final int | ONEDAY
Number of milliseconds in one day. |
| private static final Duration | |
| private @Nullable TimeZone | |
| private final StringBuilder | |
| private final Provider | |
| private final boolean | usesDouble
True if the backend uses doubles for time values. |
| private static final TimeZone | |
| private static final char[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static void | |
| private static void | |
| private static void | |
| private static void | |
| private static void | |
| private static void | appendTime(StringBuilder
destination sb, int hours hours, int minutes minutes, int seconds seconds, int nanoseconds nanos)Appends time part to the |
| private static void | |
| private void | |
| private void | |
| private void | |
| private static char | |
| public Date | Returns: The extracted date.The timestamp from which to extract the date. millis, @Nullable TimeZone The time zone of the date. tz)Extracts the date part from a timestamp. |
| public Time | Returns: The extracted time.The timestamp from which to extract the time. millis, TimeZone timezone to use. tz)Extracts the time part from a timestamp. |
| private static int | |
| private static long | |
| private static long | |
| private Calendar | |
| private TimeZone | |
| public Calendar | Returns: The shared calendar.time zone to be set for the calendar timeZone)Get a shared calendar, applying the supplied time zone or the default time zone if null. |
| private long | Returns: timestamp that would be rendered intz like millis in UTCsource timestamp millis, @Nullable TimeZone desired time zone tz)Given a UTC timestamp |
| public boolean | |
| private static boolean | |
| private static boolean | Returns: true when microsecond part of the time should be increased when rounding to microsecondsnanosecond part of the time nanos)Returns true when microsecond part of the time should be increased when rounding to microseconds |
| private static int | |
| private TimestampUtils. | parseBackendTimestamp(String str)
Load date/time information into the provided calendar returning the fractional seconds. |
| public static TimeZone | Returns: java TimeZonetime zone to use timeZone)Converts backend's TimeZone parameter to java format. |
| private Calendar | |
| private static int | |
| public String | Returns: given time value as Stringtime value time, boolean whether timezone should be added withTimeZone)Returns the given time value as String matching what the current postgresql server would send in text mode. |
| public void | |
| public @PolyNull Date | |
| public Date | |
| private static long | Returns: Java seconds.Postgresql seconds. secs)Converts the given postgresql seconds to java seconds. |
| public LocalDate | Returns: The parsed local date object.The binary encoded local date value. bytes)Returns the local date time object matching the given bytes with |
| public @PolyNull LocalDateTime | Returns: null if s is null or a LocalDateTime of the parsed string s.The ISO formated date string to parse. s)Parse a string and return a LocalDateTime representing its value. |
| public LocalDateTime | Returns: The parsed local date time object.The binary encoded local date time value. bytes)Returns the local date time object matching the given bytes with |
| public @PolyNull LocalTime | Returns: null if s is null or a LocalTime of the parsed string s.The ISO formated time string to parse. s)Parse a string and return a LocalTime representing its value. |
| public LocalTime | Returns: The parsed time object.The binary encoded time value. bytes)Returns the SQL Time object matching the given bytes with |
| public OffsetDateTime | Returns: the matching offset date timethe time value t)
Deprecated
was used internally, and not used anymore
Returns the offset date time object matching the given bytes with Oid#TIMETZ. |
| public @PolyNull OffsetDateTime | Returns: null if s is null or a OffsetDateTime of the parsed string s.The ISO formatted date string to parse. s)Parse a string and return a OffsetDateTime representing its value. |
| public OffsetDateTime | Returns: The parsed local date time object.The binary encoded local date time value. bytes)Returns the offset date time object matching the given bytes with Oid#TIMESTAMPTZ. |
| public @PolyNull OffsetTime | Returns: null if s is null or a OffsetTime of the parsed string s.The ISO formated time string to parse. s)Parse a string and return a OffsetTime representing its value. |
| public OffsetTime | Returns: The parsed offset time object.The binary encoded TIMETZ/TIME value. bytes)Returns the offset time object matching the given bytes with Oid#TIMETZ or Oid#TIME. |
| private TimestampUtils. | |
| private TimestampUtils. | |
| private static long | Returns: Java seconds.Postgresql seconds. secs)Converts the given java seconds to postgresql seconds. |
| private TimestampUtils. | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | Returns: The formatted local dateThe local date to format as a String localDateTime)Formats |
| public String | Returns: string representation oftimestamptzbinary representation of value)timestamptzConverts |
| public String | Returns: string representation oftimetzbinary representation of value)timetzConverts |
| public @PolyNull Time | |
| public Time | Returns: The parsed time object.The timezone used when received data is tz, byte[] Oid#TIME, ignored if data already
contains Oid#TIMETZ.The binary encoded time value. bytes)Returns the SQL Time object matching the given bytes with |
| public @PolyNull Timestamp | Returns: null if s is null or a timestamp of the parsed string s.calendar to be used to parse the input string cal, @PolyNull String The ISO formated date string to parse. s)Parse a string and return a timestamp representing its value. |
| public Timestamp | Returns: The parsed timestamp object.The timezone used when received data is tz, byte[] Oid#TIMESTAMP, ignored if data
already contains Oid#TIMESTAMPTZ.The binary encoded timestamp value. bytes, boolean True if the binary is in GMT. timestamptz)Returns the SQL Timestamp object matching the given bytes with |
| public OffsetTime | Returns: adjusted offset time (it represents the same instant as the input one)input offset time input)PostgreSQL does not store the time zone in the binary representation of timetz. |
| public OffsetDateTime | Returns: adjusted offset date time (it represents the same instant as the input one)input offset date time input)PostgreSQL does not store the time zone in the binary representation of timestamptz. |