PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Say I have an hour in the format of 0-23.. date("G");
And let's say that evaluated to 16 (4:00 pm)
How do I get the timestamp of the current day at 4:00 pm
This could be ran on any day, so I don't like putting "Aug 17", but I'm just trying to get something that works.
But it doesn't seem to be working =/
Seems so simple but I can't get it.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
is quite illegal, see the date function on php.net.
Yeah, I don't even know what I was thinking.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
In fact, they're 2101 seconds apart (35.016 minutes). Does mktime(date('G')) take into account the minutes and seconds of the hour as well? (I did do this around 17:35 PM or.. 5:35).
I need it to mktime() of date('G') at 00 minutes and 00 seconds.
[edit] Nevermind, this is my feelstupid moment for the day. And I need to learn to RTFM.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.