Jump to content

timestamp and timezones


dadamssg87

Recommended Posts

Let's say i have a timestamp stored in my database. I also have a form that user's can input a time and a timezone offset(-5, -4, -3, etc.).

 

How would i check if the user inputted a time that is greater than the timestamp?

 

If you're using PHP 5.3+, you can use the new DateTime functionality.  It works both procedurally and in OOP.

 

http://www.php.net/manual/en/datetime.construct.php

http://www.php.net/manual/en/datetime.gettimestamp.php

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.