All the reed sensors I have are either open or closed, they are just switches. What position do you equate to being high?
What time are you referring to? Clock time? Time since the program started?
No one here has code to give you. We can and will help you get the code you write to work the way you want.
Paul