Jump to content

Recommended Posts

Hello!

 

I'm trying to use Zend_Date (first time) as part of a website that will require users from different timezones to enter a date and time(some date in the future, say June 5th, 2013 10:00am).  I'll store this in my MySql database and then later on use it to compare it against the current date for users in those particular timezones.  Once the "future date" has passed,  my program will take some action.  A little help would be appreciated.  Right now, I have the incredible start of

 

date_default_timezone_set('America/Los_Angeles'):
$Now_date = new Zend_date;
$now_date->getTimestamp();

 

I THINK that the above code sets things up for any timezone.  I guess I need help with the format of the "future" date that gets stored in the database and then how to compare it to the $now_date.

 

Any help even getting started would be most appreciated.

 

-Thank you

Link to comment
https://forums.phpfreaks.com/topic/229321-zend-date/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.