ngng Posted September 25, 2007 Share Posted September 25, 2007 two 24hr times, say 20:00 and 2:00. I want to check if the current time is during the preset hours Quote Link to comment https://forums.phpfreaks.com/topic/70688-check-if-time-is-between-two-values/ Share on other sites More sharing options...
ngng Posted September 26, 2007 Author Share Posted September 26, 2007 bump Quote Link to comment https://forums.phpfreaks.com/topic/70688-check-if-time-is-between-two-values/#findComment-355999 Share on other sites More sharing options...
darkfreaks Posted September 27, 2007 Share Posted September 27, 2007 <?php if ($time<20:00&>1:00) { echo "Affirmitive!";} else if($time>20:00&<2:00) { echo "Time is not between the given hours!";}?> Quote Link to comment https://forums.phpfreaks.com/topic/70688-check-if-time-is-between-two-values/#findComment-356110 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.