Answers for "postgresql duration between two dates in hours"

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 "postgresql duration between two dates in hours"

Code answers related to "SQL"

Browse Popular Code Answers by Language