[PEPr] Comment on Networking::Net_NTP
| From: | Martin Jansen | Date: | Wed, 08 Sep 2004 14:46:10 +0000 |
| Subject: | [PEPr] Comment on Networking::Net_NTP | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-33296@lists.php.net to get a copy of this message | ||
Martin Jansen (http://pear.php.net/user/mj) has commented on the proposal for Networking::Net_NTP.
Comment:
After running the code, I'm not sure if it works correctly. Given the
script below, I *never* get the correct date/time, but sometimes I get
bogus dates and sometimes the output is "Thu, 1 Jan 1970 01:00:02 +0100",
which is obviously wrong.
Can you please have a look at that?
Code:
<?php
require_once "Net/NTP.php";
$time = new Net_NTP("ntp1.ptb.de");
$timestamp = $time->getTime(NET_NTP_TIMESTAMP);
echo date("r", $timestamp) . "\n";
?>
Proposal information:
http://pear.php.net/pepr/pepr-proposal-show.php?id=108
--
Sent by PEPr, the automatic proposal system at http://pear.php.net