I need to check in PHP if the current time is before 2pm that day.
I've done this with strtotime
on dates before, however this time it's with a time only, so obviously at 0.00 each day the time will reset, and the boolean will reset from false
to true
.
if (current_time < 2pm) {
// do this
}
current_time
? – Factory2pm
,14
,14:00
, .... ?), then they are not useful. – Factory