timestamp value.Warning
This interface should not be implemented or extended by code outside of this library.
| Modifier and Type | Method and Description |
|---|---|
| public IonTimestamp | clone()
Redeclares com. Creates a copy of this value and all of its children. |
| public Date | |
| public BigDecimal | Returns: the number of milliseconds since 1970-01-01T00:00:00Z represented by this timestamp, ornull if this.isNullValue().Gets the value of this Ion |
| public Integer | Returns: the positive or negative local-time offset, represented as minutes from UTC. If the offset is unknown, returnsnull.Gets the local offset (in minutes) of this timestamp, or |
| public long | Returns: the number of milliseconds since 1970-01-01T00:00:00.000Z represented by this timestamp.Gets the value of this Ion |
| public void | |
| public void | setCurrentTime()
Sets the time portion of this timestamp to the current time, leaving the local offset portion unchanged. |
| public void | setCurrentTimeUtc()
Sets the time portion of this timestamp to the current time, and the local offset portion to UTC. |
| public void | setDecimalMillis(BigDecimal
the number of milliseconds since 1970-01-01T00:00:00Z to
be represented by this timestamp. millis)Sets this timestamp to represent the point in time that is
|
| public void | setLocalOffset(int
is the new local offset, in minutes. Zero indicates UTC. minutes)Sets the local-offset portion of this timestamp. |
| public void | setLocalOffset(Integer
is the new local offset, in minutes. Zero indicates UTC.
minutes)null indicates the unknown offset (-00:00).Sets the local-offset portion of this timestamp. |
| public void | setMillis(long
the number of milliseconds since 1970-01-01T00:00:00Z to
be represented by this timestamp. millis)Sets this timestamp to represent the point in time that is
|
| public void | setMillisUtc(long
the number of milliseconds since 1970-01-01T00:00:00Z to
be represented by this timestamp. millis)Sets this timestamp to represent the point in time that is
|
| public void | |
| public void | |
| public void | setValue(BigDecimal
the number of milliseconds since 1970-01-01T00:00:00Z to
be represented by this timestamp. millis, Integer the local offset of this timestamp, in minutes. Zero
indicates UTC. localOffset)null indicates the unknown
offset (-00:00).Sets this timestamp to represent the point in time that is
|
| public void | setValue(long
the number of milliseconds since 1970-01-01T00:00:00Z to
be represented by this timestamp. millis, Integer the local offset of this timestamp, in minutes. Zero
indicates UTC. localOffset)null indicates the unknown
offset (-00:00).Sets this timestamp to represent the point in time that is
|
| public Timestamp | Returns: the value of this timestamp, ornull if this.isNullValue().Gets the value of this |
| clone | back to summary |
|---|---|
| public IonTimestamp clone() throws UnknownSymbolException Redeclares com. Doc from com. Creates a copy of this value and all of its children. The cloned value
may use the same shared symbol tables, but it will have an independent local
symbol table if necessary. The cloned value will
be modifiable regardless of whether this instance
The cloned value will be created in the context of the same
| |
| dateValue | back to summary |
|---|---|
| public Date dateValue() Gets the value of this Ion
Because
| |
| getDecimalMillis | back to summary |
|---|---|
| public BigDecimal getDecimalMillis() Gets the value of this Ion
| |
| getLocalOffset | back to summary |
|---|---|
| public Integer getLocalOffset() throws NullValueException Gets the local offset (in minutes) of this timestamp, or
For example, the result for
| |
| getMillis | back to summary |
|---|---|
| public long getMillis() throws NullValueException Gets the value of this Ion
| |
| makeNull | back to summary |
|---|---|
| public void makeNull() Sets this timestamp to Ion | |
| setCurrentTime | back to summary |
|---|---|
| public void setCurrentTime() Sets the time portion of this timestamp to the current time, leaving the local offset portion unchanged.
If | |
| setCurrentTimeUtc | back to summary |
|---|---|
| public void setCurrentTimeUtc() Sets the time portion of this timestamp to the current time, and the local offset portion to UTC. | |
| setDecimalMillis | back to summary |
|---|---|
| public void setDecimalMillis(BigDecimal millis) Sets this timestamp to represent the point in time that is
If this is
| |
| setLocalOffset | back to summary |
|---|---|
| public void setLocalOffset(int minutes) throws NullValueException Sets the local-offset portion of this timestamp. The time portion is
not changed. Note that this method cannot set the unknown offset
(
| |
| setLocalOffset | back to summary |
|---|---|
| public void setLocalOffset(Integer minutes) throws NullValueException Sets the local-offset portion of this timestamp. The time portion is not changed.
| |
| setMillis | back to summary |
|---|---|
| public void setMillis(long millis) Sets this timestamp to represent the point in time that is
If this is
| |
| setMillisUtc | back to summary |
|---|---|
| public void setMillisUtc(long millis) Sets this timestamp to represent the point in time that is
| |
| setTime | back to summary |
|---|---|
| public void setTime(Date value) Sets the time portion of this timestamp.
If
| |
| setValue | back to summary |
|---|---|
| public void setValue(Timestamp timestamp) Sets the value of this
| |
| setValue | back to summary |
|---|---|
| public void setValue(BigDecimal millis, Integer localOffset) Sets this timestamp to represent the point in time that is
| |
| setValue | back to summary |
|---|---|
| public void setValue(long millis, Integer localOffset) Sets this timestamp to represent the point in time that is
| |
| timestampValue | back to summary |
|---|---|
| public Timestamp timestampValue() Gets the value of this
| |