/* * Copyright (c) 2001, DecisionSoft Limited All rights reserved. * Please see LICENSE.TXT for more information. */ #ifndef _FUNCTIONSUBTRACTDATESYIELDINGDAYTIMEDURATION_HPP #define _FUNCTIONSUBTRACTDATESYIELDINGDAYTIMEDURATION_HPP #include #include /** * Calculates the dayTimeDuration that is the difference between two * dates. * * subtract-dates-yielding-dayTimeDuration(date $srcval1, * date $srcval2) => dayTimeDuration */ class PATHAN_EXPORT FunctionSubtractDatesYieldingDayTimeDuration : public DataItemFunction { public: static const XMLCh name[]; /** * Constructor. */ FunctionSubtractDatesYieldingDayTimeDuration(const VectorOfDataItems &args, XPath2MemoryManager* memMgr); DataItem* staticResolution(StaticContext *context, StaticResolutionContext *src); /** * Returns the dayTimeDuration that corresponds to the difference * between the value of $srcval1 and the value of $srcval2 */ Sequence collapseTreeInternal(DynamicContext* context, int flags=0) const; }; #endif // _FUNCTIONSUBTRACTDATESYIELDINGDAYTIMEDURATION_HPP