Requesting the time from a time server is simple. First, you provide the time server from which you want to request the time.
$server = new Zend_TimeSync('0.pool.ntp.org');
So what is happening in the background of
the syntax of the time server is checked. In our example,
'0.pool.ntp.org' is checked and recognised as a possible address
for a time server. Then when calling
getDate() the actual set
time server is requested and it will return its own time.
Zend_TimeSync then calculates the difference to the actual time
of the server running the script and returns a
with the correct time.
For details about
Zend_Date and its methods see the