Code: Select all
echo gettimeofday(true);How do you state a given time, and then convert that into a PHP string so it cna be queried?
For example. I want a button to appear only before 5pm. at 17:01 I want that button to disappear.
I theory I'd say:
get current time.
setQueryTime to 17:00.
If currentTime is <= QueryTime, then show button.
Else, do not show button.
That's basically it. Doing all that with a date is a doddle. But how do you do it with time??