by joneholland · 3y ago · 0 comments
You either want something like
floor(timestamp / 3600)
timestamp - timestamp % 3600