Quantcast
Channel: How to get Date Difference in hour using HQL - Stack Overflow
Browsing all 2 articles
Browse latest 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 all 2 articles
Browse latest View live




Latest Images