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.
