net.sf.saxon.expr

Class ArithmeticExpression.DateDifference

public static class ArithmeticExpression.DateDifference extends ArithmeticExpression

Inner class to handle subtraction of a Date (or Time, or DateTime) from another, to return a Duration
Constructor Summary
DateDifference(Expression p1, int operator, Expression p2)
Method Summary
static ItemdoArithmetic(Expression operand0, Expression operand1, XPathContext context)
ItemevaluateItem(XPathContext context)
Evaluate the expression.

Constructor Detail

DateDifference

public DateDifference(Expression p1, int operator, Expression p2)

Method Detail

doArithmetic

public static Item doArithmetic(Expression operand0, Expression operand1, XPathContext context)

evaluateItem

public Item evaluateItem(XPathContext context)
Evaluate the expression.