View Single Post
Old Jul 17th, 2007, 11:39 PM   #1
grimpirate
King of Portal
 
grimpirate's Avatar
 
Join Date: Sep 2005
Posts: 431
Rep Power: 4 grimpirate is on a distinguished road
Send a message via Yahoo to grimpirate
Question Unix Timestamps?

I'm a bit confused regarding the Unix timestamps in PHP. When I use the function time() I get a Unix timestamp. However, does this returned timestamp contain in it daylight savings and timezone offsets? Or does the number solely represent a GMT timestamp? Is it the power of the date() function that takes the timezone and dst into effect? Any suggestions on this riddle? I ask because I have a timestamp that is offset from GMT which I convert into a unix timestamp using strtotime() and I need to compare it to the current date unix timestamp to see if it has expired. However I can't compare timestamps in different timezones. So will time() and strtotime() yield Unix timestamps which are in the same timezone? Wow that's confusing.
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis
grimpirate is offline   Reply With Quote