I am trying to get a collection based on their time entries

title: 'Store: Categories'
 time_from:
  type: time
  display: time_from
 time_to:
  type: time
  display: time_to

in my template i would do following:

{{ if (now | format:h:i) < (time_from | format:h:i) && (now | format:h:i) > (time_to | format:h:i) }}
{{ title }}
{{ /if }}

but somehow i am not getting the right results