Package | Description |
---|---|
org.h2.util |
Internal utility classes.
|
org.h2.value |
Data type and value implementations.
|
Modifier and Type | Method and Description |
---|---|
static ValueTimestamp |
DateTimeUtils.convertTimestamp(Timestamp x,
Calendar calendar)
Convert the timestamp using the specified calendar.
|
static ValueTimestamp |
DateTimeUtils.normalizeTimestamp(long absoluteDay,
long nanos)
Calculate the normalized timestamp.
|
static ValueTimestamp |
ToDateParser.toDate(String input,
String format)
Parse a string as a date with the given format.
|
static ValueTimestamp |
ToDateParser.toTimestamp(String input,
String format)
Parse a string as a timestamp with the given format.
|
Modifier and Type | Method and Description |
---|---|
static ValueTimestamp |
ValueTimestamp.fromDateValueAndNanos(long dateValue,
long timeNanos)
Get or create a date value for the given date.
|
static ValueTimestamp |
ValueTimestamp.fromMillis(long ms)
Get or create a timestamp value for the given date/time in millis.
|
static ValueTimestamp |
ValueTimestamp.fromMillisNanos(long ms,
int nanos)
Get or create a timestamp value for the given date/time in millis.
|
static ValueTimestamp |
ValueTimestamp.get(Timestamp timestamp)
Get or create a timestamp value for the given timestamp.
|
static ValueTimestamp |
ValueTimestamp.parse(String s)
Parse a string to a ValueTimestamp.
|
static ValueTimestamp |
ValueTimestamp.parse(String s,
Mode mode)
Parse a string to a ValueTimestamp, using the given
Mode . |
Copyright © 2020 JBoss by Red Hat. All rights reserved.