So why would someone use
Normally every server within a multi-server farm will have a service running which
synchronizes its own time with a time server. So within a standard environment it should
not be necessary to use
Zend_TimeSync. But it can become handy if
there is no service available and if you don't have the right to install such a service.
Here are some example use cases, for which
Server without time service
If your application is running on a server and this server does not have any time service running, it may make sense to use
Zend_TimeSyncin your application.
Separate database server
If your database is running on a different server and this server is not connected with NTP or SNTP to the application server, you might have problems using storing and using time stamp data.
If your application is running on more than one server and these servers' time bases are not syncronized, you can expect problems within your application when part of the application is coming from one server and another part from another server.
If you want to work with a time service within a batch file or within a command line application,
Zend_TimeSyncmay be of use.
Zend_TimeSync may provide a good solution in all of these cases
and can be used if you are unable to run any services on your server.