Skip to content

Conversation

tarasom
Copy link
Contributor

@tarasom tarasom commented Sep 22, 2025

This PR adds support for the TIMESTAMPDIFF() function

Key changes include:

  • Implemented the sqlTimestampdiff function to calculate the difference between two timestamps, handling various units such as SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, QUARTER, and YEAR.
  • Added a new test case (testTimestampDiff) to ensure the function works as expected for different units and date combinations, including both positive and negative results.

@tarasom tarasom force-pushed the timestampdiff_support branch from 29be457 to 5748265 Compare September 22, 2025 14:43
@tarasom tarasom force-pushed the timestampdiff_support branch from 5748265 to 675df9e Compare September 22, 2025 14:45
@aaronm67 aaronm67 merged commit 19a7d7a into vimeo:master Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants