I have a postgres table with timestamps and the rounded difference in hours between current and previous (lagged) timestamp in difftime
difftime
timestamp