org.basex.query.xquery.item
Class Dtm

java.lang.Object
  extended by org.basex.query.ExprInfo
      extended by org.basex.query.xquery.expr.Expr
          extended by org.basex.query.xquery.item.Item
              extended by org.basex.query.xquery.item.Date
                  extended by org.basex.query.xquery.item.Dtm

public final class Dtm
extends Date

DateTime item.

Author:
Workgroup DBIS, University of Konstanz 2005-08, ISC License, Christian Gruen

Nested Class Summary
 
Nested classes/interfaces inherited from class org.basex.query.xquery.expr.Expr
Expr.Return, Expr.Using
 
Field Summary
static java.text.SimpleDateFormat DATE
          Slider width.
 
Fields inherited from class org.basex.query.xquery.item.Date
df, xc
 
Fields inherited from class org.basex.query.xquery.item.Item
type
 
Constructor Summary
Dtm(byte[] dt)
          Constructor.
Dtm(Date d)
          Constructor.
Dtm(Date d, Dur a, boolean p)
          Constructor.
Dtm(Dec tm)
          Constructor.
 
Method Summary
 
Methods inherited from class org.basex.query.xquery.item.Date
days, diff, eq, java, seconds, str, toString
 
Methods inherited from class org.basex.query.xquery.item.Item
bool, castErr, comp, d, dbl, dec, flt, hash, i, iter, iter, itr, n, name, node, plan, returned, s, score, score, serialize, size, u, uses
 
Methods inherited from class org.basex.query.xquery.expr.Expr
e
 
Methods inherited from class org.basex.query.ExprInfo
color, info
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DATE

public static final java.text.SimpleDateFormat DATE
Slider width.

Constructor Detail

Dtm

public Dtm(Date d)
Constructor.

Parameters:
d - date

Dtm

public Dtm(byte[] dt)
    throws XQException
Constructor.

Parameters:
dt - date
Throws:
XQException - evaluation exception

Dtm

public Dtm(Dec tm)
    throws XQException
Constructor.

Parameters:
tm - time in milliseconds
Throws:
XQException - evaluation exception

Dtm

public Dtm(Date d,
           Dur a,
           boolean p)
    throws XQException
Constructor.

Parameters:
d - date
a - duration
p - plus/minus flag
Throws:
XQException - evaluation exception