Package | Description |
---|---|
software.amazon.ion |
Public interfaces of the core Ion system.
|
software.amazon.ion.util |
Various utilites for working with Ion data.
|
Modifier and Type | Method and Description |
---|---|
Timestamp |
Timestamp.addDay(int amount)
Returns a timestamp relative to this one by the given number of days.
|
Timestamp |
Timestamp.addHour(int amount)
Returns a timestamp relative to this one by the given number of hours.
|
Timestamp |
Timestamp.addMillis(long amount)
Returns a timestamp relative to this one by the given number of
milliseconds.
|
Timestamp |
Timestamp.addMinute(int amount)
Returns a timestamp relative to this one by the given number of minutes.
|
Timestamp |
Timestamp.addMonth(int amount)
Returns a timestamp relative to this one by the given number of months.
|
Timestamp |
Timestamp.addSecond(int amount)
Returns a timestamp relative to this one by the given number of seconds.
|
Timestamp |
Timestamp.addYear(int amount)
Returns a timestamp relative to this one by the given number of years.
|
Timestamp |
Timestamp.clone()
Creates a copy of this Timestamp.
|
static Timestamp |
Timestamp.createFromUtcFields(Timestamp.Precision p,
int zyear,
int zmonth,
int zday,
int zhour,
int zminute,
int zsecond,
BigDecimal frac,
Integer offset)
Deprecated.
This is an internal API that is subject to change without notice.
|
static Timestamp |
Timestamp.forCalendar(Calendar calendar)
Converts a
Calendar to a Timestamp, preserving the calendar's
time zone as the equivalent local offset when it has at least minutes
precision. |
static Timestamp |
Timestamp.forDateZ(Date date)
Converts a
Date to a Timestamp in UTC representing the same
point in time. |
static Timestamp |
Timestamp.forDay(int yearZ,
int monthZ,
int dayZ)
Returns a Timestamp, precise to the day, with unknown local offset.
|
static Timestamp |
Timestamp.forMillis(BigDecimal millis,
Integer localOffset)
Returns a Timestamp that represents the point in time that is
millis milliseconds (including any fractional
milliseconds) from the epoch, with a given local offset. |
static Timestamp |
Timestamp.forMillis(long millis,
Integer localOffset)
Returns a Timestamp that represents the point in time that is
millis milliseconds from the epoch, with a given local offset. |
static Timestamp |
Timestamp.forMinute(int year,
int month,
int day,
int hour,
int minute,
Integer offset)
Returns a Timestamp, precise to the minute, with a given local
offset.
|
static Timestamp |
Timestamp.forMonth(int yearZ,
int monthZ)
Returns a Timestamp, precise to the month, with unknown local offset.
|
static Timestamp |
Timestamp.forSecond(int year,
int month,
int day,
int hour,
int minute,
BigDecimal second,
Integer offset)
Returns a Timestamp, precise to the second, with a given local offset.
|
static Timestamp |
Timestamp.forSecond(int year,
int month,
int day,
int hour,
int minute,
int second,
Integer offset)
Returns a Timestamp, precise to the second, with a given local offset.
|
static Timestamp |
Timestamp.forSqlTimestampZ(Timestamp sqlTimestamp)
Converts a
Timestamp to a Timestamp in UTC representing
the same point in time. |
static Timestamp |
Timestamp.forYear(int yearZ)
Returns a Timestamp, precise to the year, with unknown local offset.
|
static Timestamp |
Timestamp.now()
Returns a Timestamp representing the current time (based on the JVM
clock), with an unknown local offset.
|
static Timestamp |
Timestamp.nowZ()
Returns a Timestamp in UTC representing the current time (based on the
the JVM clock).
|
Timestamp |
IonReader.timestampValue()
Returns the current value as a
Timestamp . |
Timestamp |
IonTimestamp.timestampValue()
Gets the value of this
timestamp in a form suitable for
use independent of Ion data. |
static Timestamp |
Timestamp.valueOf(CharSequence ionFormattedTimestamp)
Returns a new Timestamp that represents the point in time, precision
and local offset defined in Ion format by the
CharSequence . |
Timestamp |
Timestamp.withLocalOffset(Integer offset)
Returns a timestamp at the same point in time, but with the given local
offset.
|
Modifier and Type | Method and Description |
---|---|
int |
Timestamp.compareTo(Timestamp t)
Performs a comparison of the two points in time represented by two
Timestamps.
|
boolean |
Timestamp.equals(Timestamp t)
|
IonTimestamp |
ValueFactory.newTimestamp(Timestamp value)
Constructs a new
timestamp instance with the given value. |
void |
IonTimestamp.setValue(Timestamp timestamp)
Sets the value of this
timestamp . |
void |
IonWriter.writeTimestamp(Timestamp value)
Writes a timestamp value.
|
Modifier and Type | Method and Description |
---|---|
Timestamp |
JarInfo.getBuildTime()
Gets the time at which this package was built.
|