Quantcast
Channel: How to get Date Difference in hour using HQL - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Eugene for How to get Date Difference in hour using HQL

HQL supports EXTRACT(... FROM ...) function, and EPOCH keyword although it is not mentioned in documentstion.HQL also supports no-argument LOCALTIMESTAMP function (for Postgres and MySQL dialects)....

View Article


How to get Date Difference in hour using HQL

I've to get difference between current date and the date stored in database in hours. In PostgreSQL, I'm able to do it using the following query:SELECT storage_time, extract(epoch from (localtimestamp...

View Article
Browsing latest articles
Browse All 2 View Live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>