Search found 4 matches

by blazer21
Wed Jun 22, 2005 4:46 pm
Forum: PHP - Code
Topic: Dates
Replies: 6
Views: 1303

Funny I can't seem to get strtotime('+4 hours') to work correctly even using your posted code. So, I'm going to use the following.

Code: Select all

echo date('h:i:s', (time()+14400));
by blazer21
Wed Jun 22, 2005 4:08 pm
Forum: PHP - Code
Topic: strtotime() not working correctly?
Replies: 1
Views: 561

strtotime() not working correctly?

PHP v5.0.2

When running the following code date always returns 04:00:00 for the time and not 4 hours past the current time?

Code: Select all

echo $date('m/d/Y h:i:s', strtotime('+4 hours', time()));
by blazer21
Wed Jun 22, 2005 3:20 pm
Forum: PHP - Code
Topic: Dates
Replies: 6
Views: 1303

Thanks

Thanks for the help...
by blazer21
Wed Jun 22, 2005 3:13 pm
Forum: PHP - Code
Topic: Dates
Replies: 6
Views: 1303

Dates

How could I take a unix timestamp in php and add 4hours to it?