Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add millisecond option for date_diff #204

Open
therapon opened this issue Feb 13, 2020 · 2 comments
Open

Add millisecond option for date_diff #204

therapon opened this issue Feb 13, 2020 · 2 comments
Labels
enhancement New feature or request S Small sized task

Comments

@therapon
Copy link
Contributor

It would be nice to have the option to use date_diff that outputs the time difference in milliseconds.
Ex: DATE_DIFF(milliseconds, my_timestamp_field, UTCNOW())

@therapon therapon added enhancement New feature or request S Small sized task labels Feb 13, 2020
@dlurton
Copy link
Member

dlurton commented Dec 17, 2021

Is this SQL-92?

@therapon
Copy link
Contributor Author

Is this SQL-92?

I do not think so. I believe SQL92 has intervals and relies on extract to grab scalars from an interval. date_diff seems to be a common date related function across DB implementations.

I do not recall the source for adding this issue though (ask from someone or "coverage" for date_diff not sure)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request S Small sized task
Projects
None yet
Development

No branches or pull requests

2 participants