News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Zend Framework By Examples:
Handling dates and times (Zend_Date)
January 22, 2010 @ 11:09:45

The Zend Framework By Examples site has posted a recent tutorial about using the Zend_Date component of the Zend Framework to work with dates and times in your PHP applications.

In this example, we get or set dates in different timezones. We display parts of dates and times in various formats. We also get information on sunrise and sunset in several locations.

They also incorporate other components in the examples including Zend_Cache, Zend_Locate and Zend_Registry. Their examples show how to check the locale, verify the timezone and figure out a "date from now". Complete code is included - it's not the best method to handle some parts of the example, but it's a rough guide in the right direction.

1 comment voice your opinion now!
zenddate zendframework tutorial timezone


blog comments powered by Disqus

Similar Posts

Matthew Weier OPhinney's Blog: State of Zend Framework 2.0

SitePoint PHP Blog: Hashing Passwords with the PHP 5.5 Password Hashing API

Matthew Weier O'Phinney's Blog: Creating Zend_Tool Providers

Rob Allen's Blog: Zend Framework Tutorials (an Update and Zend_Auth)

VilkomenJuist.nl: Laravel 4 and NodeJs/Redis pub/sub realtime notifications


Community Events

Don't see your event here?
Let us know!


example programming api introduction language series yii2 framework php7 part2 project symfony laravel application list opinion podcast community composer interview

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework