postgres calculate the time difference

Calculate the time difference in seconds

select extract(epoch FROM (now() - (now()-interval '1 day') ));
 

Guess you like

Origin www.cnblogs.com/qianxunman/p/12075648.html