Ik zou zeggen date_trunc('hour')
kan hier van pas komen, bijv.
select token_id, generated_time
from token
where generated_time between date_trunc('hour', current_timestamp) and date_trunc('hour', current_timestamp + interval '1 hour')
Ik zou zeggen date_trunc('hour')
kan hier van pas komen, bijv.
select token_id, generated_time
from token
where generated_time between date_trunc('hour', current_timestamp) and date_trunc('hour', current_timestamp + interval '1 hour')