First you will need someway to determine the time zone the user is in. The only way I can think of to do that is to have them somehow pass that information to you.
Typically the various date functions are calculated off the SERVERs time.
The ways to compare are depending upon WHAT you want to compare... The DAY, the HOUR, the Year, The MONTH DAY YEAR, etc.... Comparison is relatively easy using the UNIX timestamp since it's basic math (calculating the number of seconds within the comparison period). Without more information, I don't think I could be much more help, but I hope this helps get you in the right direction.
Paul Gardner
------------------
PHP-LIVE help
Via Web @
http://www.mnetweb.co.uk/irc
Via IRC Client pgardner.net:6667
room #PHP