I have a table with a column ctime of type time without time zone.
ctime
time without time zone
| cdate | ctime +------------+---------- | 2016-12-2
use date_trunc:
date_trunc
group by cdate, date_trunc('hour', ctime)