Class TimestampdiffFunction

All Implemented Interfaces:
FunctionRenderer, SqmFunctionDescriptor

public class TimestampdiffFunction extends AbstractSqmSelfRenderingFunctionDescriptor
The timestampdiff() or datediff() function has a funny syntax which accepts a TemporalUnit as the first argument, and the actual set of accepted units varies widely. This class uses Dialect.timestampdiffPattern(TemporalUnit, TemporalType, TemporalType) to abstract these differences.