public final class V8ValueZonedDateTime extends V8ValuePrimitive<java.time.ZonedDateTime>
value
OBJECT_CONVERTER, v8Runtime
Constructor and Description |
---|
V8ValueZonedDateTime(V8Runtime v8Runtime)
Instantiates a new V8 value zoned date time.
|
V8ValueZonedDateTime(V8Runtime v8Runtime,
long jsTimestamp)
Instantiates a new V8 value zoned date time.
|
V8ValueZonedDateTime(V8Runtime v8Runtime,
java.time.ZonedDateTime value)
Instantiates a new V8 value zoned date time.
|
Modifier and Type | Method and Description |
---|---|
boolean |
asBoolean()
A simulation of the JS
if (variable) |
int |
asInt()
As int.
|
V8ValueZonedDateTime |
toClone(boolean referenceCopy)
Get a clone of the current V8 value.
|
long |
toPrimitive()
To primitive long.
|
close, equals, getValue, isEmpty, isPresent, sameValue, strictEquals, toString
checkV8Runtime, getV8Runtime, isClosed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asDouble, asLong, asString, isNull, isNullOrUndefined, isUndefined
toClone
public V8ValueZonedDateTime(V8Runtime v8Runtime) throws JavetException
v8Runtime
- the V8 runtimeJavetException
- the javet exceptionpublic V8ValueZonedDateTime(V8Runtime v8Runtime, long jsTimestamp) throws JavetException
v8Runtime
- the V8 runtimejsTimestamp
- the js timestampJavetException
- the javet exceptionpublic V8ValueZonedDateTime(V8Runtime v8Runtime, java.time.ZonedDateTime value) throws JavetException
v8Runtime
- the V8 runtimevalue
- the valueJavetException
- the javet exceptionpublic boolean asBoolean()
IV8Value
if (variable)
public int asInt() throws JavetException
IV8Value
JavetException
- the javet exceptionpublic V8ValueZonedDateTime toClone(boolean referenceCopy) throws JavetException
IV8Cloneable
referenceCopy
- the reference copyJavetException
- the javet exceptionpublic long toPrimitive()