net.sf.saxon.functions

Class CurrentDateTime

public class CurrentDateTime extends SystemFunction

This class implements the XPath 2.0 functions current-date(), current-time(), and current-dateTime(), as well as the function implicit-timezone(). The value that is required is inferred from the type of result required.
Method Summary
ItemevaluateItem(XPathContext context)
Evaluate in a general context
static SecondsDurationValuegetImplicitTimezone(XPathContext context)
Get the implicit timezone
intgetIntrinsicDependencies()
Determine the dependencies
ExpressionpreEvaluate(StaticContext env)
preEvaluate: this method suppresses compile-time evaluation by doing nothing (because the value of the expression depends on the runtime context)

Method Detail

evaluateItem

public Item evaluateItem(XPathContext context)
Evaluate in a general context

getImplicitTimezone

public static SecondsDurationValue getImplicitTimezone(XPathContext context)
Get the implicit timezone

getIntrinsicDependencies

public int getIntrinsicDependencies()
Determine the dependencies

preEvaluate

public Expression preEvaluate(StaticContext env)
preEvaluate: this method suppresses compile-time evaluation by doing nothing (because the value of the expression depends on the runtime context)