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 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 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!";}?> 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
Archived
This topic is now archived and is closed to further replies.