Time from - to using {} HAss

It is possible to express the time range from - to using {}. Specifically, I mean in HomeAssistant in trigger state as one of the conditions 23:00<sensor.time<7:00

Thanks for the help