Modifier and Type | Method and Description |
---|---|
long |
day()
Returns the days.
|
int |
diff(Item it,
Collation coll,
InputInfo ii)
Returns the difference between the current and the specified item.
|
static int |
dpm(long yea,
int mon)
Returns days per month, considering leap years.
|
boolean |
eq(Item it,
Collation coll,
StaticContext sc,
InputInfo ii)
Checks the items for equality.
|
int |
hash(InputInfo ii)
Returns a hash code for this value.
|
long |
hou()
Returns the hours (0-23).
|
long |
min()
Returns the minutes (0-59).
|
long |
mon()
Returns the months.
|
BigDecimal |
sec()
Returns the seconds (0-59), including the fractional part.
|
byte[] |
string(InputInfo ii)
Returns a string representation of the value.
|
abstract void |
timeZone(DTDur zone,
boolean spec,
InputInfo ii)
Adjusts the timezone.
|
XMLGregorianCalendar |
toJava()
Returns a Java representation of the value.
|
String |
toString() |
int |
tz()
Returns the timezone in minutes.
|
boolean |
tzDefined()
Returns if the timezone is defined.
|
long |
yea()
Returns the years.
|
atomItem, atomItem, atomSize, atomValue, bool, comparable, dbl, dec, description, ebv, equiv, flt, homogeneous, input, item, itemAt, iter, iterable, itr, materialize, plan, score, score, seqType, size, test, typeId, writeTo, xdmInfo
accept, atomValue, cache, checkUp, compile, copy, count, exprSize, has, inline, isValue, iter, iterator, removable, serialize, serialize, value
atomIter, data, hasFreeVars, indexAccessible, inlineAll, isEmpty, isFunction, isVacuous, markTailCalls, optimize, optimizeEbv, sameAs, typeCheck, uses, visitAll
public abstract void timeZone(DTDur zone, boolean spec, InputInfo ii) throws QueryException
zone
- timezonespec
- indicates if zone has been specified (may be null
)ii
- input infoQueryException
- query exceptionpublic final long yea()
ADateDur
public final long mon()
ADateDur
public final long day()
ADateDur
public final long hou()
ADateDur
public final long min()
ADateDur
public final BigDecimal sec()
ADateDur
public final int tz()
public final boolean tzDefined()
public byte[] string(InputInfo ii)
Item
public final boolean eq(Item it, Collation coll, StaticContext sc, InputInfo ii) throws QueryException
Item
eq
in class Item
it
- item to be comparedcoll
- collationsc
- static contextii
- input infoQueryException
- query exceptionpublic int hash(InputInfo ii) throws QueryException
Value
hash
in class Item
ii
- input infoQueryException
- if atomization can't be applied (e.g. function item)public int diff(Item it, Collation coll, InputInfo ii) throws QueryException
Item
diff
in class Item
it
- item to be comparedcoll
- query contextii
- input infoQueryException
- query exceptionpublic final XMLGregorianCalendar toJava()
Value
public static int dpm(long yea, int mon)
yea
- yearmon
- monthCopyright © 2005–2015 BaseX Team. All rights reserved.