Answers for "hours between dates postgres"

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 "hours between dates postgres"

Code answers related to "SQL"

Browse Popular Code Answers by Language