BAP-5305: Add TIMESTAMPDIFF function