
February 27th, 2004, 01:58 PM
|
|
Registered User
|
|
Join Date: Feb 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
PHP UTC time operations
I have a table of events that are sorted by GMT time and i need to be able to set a variable to the current GMT time minus how many hours the users picks. im not sure if im making any since here.
say it is currently 21:00:00 UTC and the user wanted to see everything that happend in the last hour, and also the seconds do matter.
i can use the gmdat(h:i:s) command to get GMT time but i dont know how to subtract the specified amount from it.
thanks!!
|