Answers for "get number of hours between two dates postgresql"

SQL
2

postgresql get difference in hours between two dates

select EXTRACT(
	EPOCH FROM now() - (now() - INTERVAL '5 HOUR')
)/3600

-- it will return 5
Posted by: Guest on March-04-2021

Code answers related to "get number of hours between two dates postgresql"

Code answers related to "SQL"

Browse Popular Code Answers by Language