Package org.duckdb
Class DuckDBTimestamp
java.lang.Object
org.duckdb.DuckDBTimestamp
- Direct Known Subclasses:
DuckDBTime,DuckDBTimestampTZ
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDuckDBTimestamp(long timeMicros) DuckDBTimestamp(Timestamp sqlTimestamp) DuckDBTimestamp(LocalDateTime localDateTime) DuckDBTimestamp(OffsetDateTime offsetDateTime) -
Method Summary
Modifier and TypeMethodDescriptionstatic longgetMicroseconds(Timestamp sqlTimestamp) longstatic longlocalDateTime2Micros(LocalDateTime localDateTime) static LocalDateTimelocalDateTimeFromTimestamp(long value, ChronoUnit unit, ZoneId zoneIdNullable) static LocalDateTimelocalDateTimeFromTimestampWithTimezone(long value, ChronoUnit unit, ZoneId zoneIdNullable) static OffsetTimetoOffsetTime(long timeBits) toString()static Object
-
Field Details
-
timeMicros
protected long timeMicros
-
-
Constructor Details
-
DuckDBTimestamp
public DuckDBTimestamp(long timeMicros) -
DuckDBTimestamp
-
DuckDBTimestamp
-
DuckDBTimestamp
-
-
Method Details
-
localDateTimeFromTimestampWithTimezone
public static LocalDateTime localDateTimeFromTimestampWithTimezone(long value, ChronoUnit unit, ZoneId zoneIdNullable) throws SQLException - Throws:
SQLException
-
localDateTimeFromTimestamp
public static LocalDateTime localDateTimeFromTimestamp(long value, ChronoUnit unit, ZoneId zoneIdNullable) throws SQLException - Throws:
SQLException
-
toOffsetTime
-
localDateTime2Micros
-
valueOf
-
toSqlTimestamp
-
toLocalDateTime
-
toOffsetDateTime
-
getMicroseconds
-
getMicrosEpoch
public long getMicrosEpoch() -
toString
-