Hey all,
How can I add 1 hour to the current time in PHP?
I'm using the date function.
Example:
$omydate = date("Y-m-d H:i:s");
What I want to do is add 1 hour to the "H". So whenever the code parses the date, it will always be the current time plus 1 hour. If current time is 14:25:30, I want it to read 15:23:30.
How can I accomplish this?
Thanks!
- Tyhand.
How can I add 1 hour to the current time in PHP?
I'm using the date function.
Example:
$omydate = date("Y-m-d H:i:s");
What I want to do is add 1 hour to the "H". So whenever the code parses the date, it will always be the current time plus 1 hour. If current time is 14:25:30, I want it to read 15:23:30.
How can I accomplish this?
Thanks!
- Tyhand.