Good time! I try to check the time in the format HH: MM is a function that, through str_replace, cuts Ymd H from the current time format: i: s (2017-12-02 17:08:11) and writes it to the $ new variable. Further it is required to make comparisons like:
if ($new >= "13:00" && $new <= "15:45") { //операции } but the comparison is not correct as I understood because time is compared in the format of strings. Is there any way to compare it so that there are no glitches? but it is very necessary that it would be compared exactly the clock without specifying a more accurate date, some kind of temporary conversion of the clock to a more complete date can then be compared. But the main thing is that in the if else constructions the time in the hour-minute format is specified.