I have some functionality that depends on whether something has already happened in time.
Currently, I do something like this:
$hike_time = strtotime($month.'/'.$day.'/'.$year.' '.$start_time);
if($hike_time < mktime())
{
// Do stuff :)
}
But I need to wait a day or twelve hours (not sure yet) until I change the functionality.
How can I make the mktime() be +1 day or +12 hours?
In terms of UX, how are such event-based UX quirks typically handled?
You can use
strtotime().CodePad.