-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi All,
I have the below line of codes
$day1 = new Zend_Date('2010-03-01', 'YYYY-mm-dd');
$day2 = new Zend_Date('2010-03-05', 'YYYY-mm-dd');
$dateDiff = $day2->getDate()->get(Zend_Date::TIMESTAMP) - $day1->getDate()->get(Zend_Date::TIMESTAMP);
$days = floor((($dateDiff / 60) / 60) /…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, i want to make stackoverflow timestamps(X minutes ago, etc). How i can make it using zend_date? I found http://stackoverflow.com/questions/1639892/how-to-calculate-time-passed-with-php-or-zend-date this realisation, but it uses other library. Are there any different ways?
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Frankly, I'm flummoxed. Can anyone tell me why I would get a failure message with this code?
$date = Zend_Date::now();
$date = $date->getIso();
if(Zend_Date::isDate($date, Zend_Date::ISO_8601)) {
print('success');
} else {
print('failure');
}
exit;
It also fails if I just pass in a…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm using Zend_Date to manage dates/times in a scheduling app.
The only way I'm able to determine the user's Timezone is via Javascript which only gives a Timezone Offset. Zend_Date only seems to take Timezones in the 'America/New_York' format.
Is there a way to get the users timezone in this…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Loving Zend Framework, hating Zend_Date...
I'm buidling an app where one of the functions is to track the time one spends on a certain task. This works great. My previous question was my incapability to get the sum of all the timestamps (time spent on each task). Well that works as a charm, but when…
>>> More