Hi guys,
I need the current hour in [0,23] format, the local server time is just fine. What's the best (fastest) way to get this value ?
Thanks.
Get Hour ?
Moderator: General Moderators
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
I don't know how to benchmark PHP, that's why.
When I benchmark C++ I run a Performance Counter so it's pretty straightforward.
Also, I develop my PHP on a WinXP machine then upload it to my web server so it's not so easy to benchmark.
Anyway, I'm going to do it this way for now:
Take care.
When I benchmark C++ I run a Performance Counter so it's pretty straightforward.
Also, I develop my PHP on a WinXP machine then upload it to my web server so it's not so easy to benchmark.
Anyway, I'm going to do it this way for now:
Code: Select all
$hour=date("H");
settype($hour,"integer");