I'd like to write a function that returns a boolean true if the request is being made between 8am and 5pm central timw monday-saturday, and false any other time. I know that I will probably be using date()
and strtotime()
but outside of that, I'm lost. Any pointers?
desired result
if (DuringBusinessHours()) {
// execute this
} else {
// execute this
}