Work in minutes since midnight for your comparisons. Your issue now is that you're testing for minutes to be greater or equal to 30 and less than 30 - not likely to happen.
Work in minutes since midnight for your comparisons. Your issue now is that you're testing for minutes to be greater or equal to 30 and less than 30 - not likely to happen.