KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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 }
Tags (comma-separated)
Save Edits
Cancel