v.21.6Improvement

dateDiff Enhancements for DateTime64 Support

dateDiff now works with DateTime64 arguments (even for values outside of DateTime range) #22931 (Vasily Nemkov).
dateDiff function now supports DateTime64 arguments, including values that fall outside the traditional DateTime range.

Why it matters

This feature extends the functionality of the dateDiff function to handle high-precision datetime values and dates outside the usual DateTime range, enabling more accurate and flexible time difference calculations for users working with DateTime64 data types.

How to use it

Use the dateDiff function as before, but now you can pass DateTime64 values as arguments without any additional configuration or changes in syntax.