I’m trying to create a slider that will take input from users on their sleep schedule. The usual sleep time being 22:00 to 06:00, I want the 22:00 to be on the left and 06:00 on the right. The user should be able to move the left slider to change his sleep_start time and the right slider to change the sleep_end time. The min value i.e. leftmost value I want to set is 2100, and max value will be 10:00, which will be the rightmost value.
How can I make this possible?
I tried this code, sleep_time = st.slider( "Choose your sleep time:",min_value = (time(21,00)), max_value= (time(10,00)), value=(time(22, 00), time(7, 00)) )