Clock daily,afternoon, night

Hi everyone
Someone can advise me. I can’t put together a formula
I want to divide the day into three parts.
time from
6 to 14 daily shift
14 to 22 afternoon shift
22 to 6 night shift
here is my attempt

You can try using this blocks to get the current hour:
blocks (70)

in any case, thank you
the clock I currently get in the form of HH is 24
and load into the variable
I can’t make a pattern
if the time is between 6 and 14 it returns the value to the text field “daily shift”
and so on
if the time is between 14 and 22 it returns the value to the text field “afternoon shift”
and finally if 22 and 6 it returns the value to the text field “night shift”

From one of my projects -
(Changed Values Accordingly)

2 Likes

I did it this way and it works
thank you everyone

1 Like

going the long way, instead of so many OR’s you can use list -

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.