Re: Convert to NTP Timestamp

From: Jim Gibson (jgibson_at_mail.arc.nasa.gov)
Date: 03/11/05


Date: Fri, 11 Mar 2005 09:37:37 -0800

In article <1110558942.504898.225010@o13g2000cwo.googlegroups.com>,
Manzoorul Hassan <manzoorul.hassan@gmail.com> wrote:

> I need to convert a date / time to NTP Timestamp, in HEX no less, and
> was wondering if there might be a module for it.
>
> Any ideas? I have been searching for NTP Timestamp under Perl but have
> not found much - yet.

I googled 'perl ntp timestamp' and got this interesting link:

<http://www.kloth.net/software/sntp.php>

a complete NTP client in Perl that prints out the timestamp in hex.
Maybe that would help. There is also the Net::NTP module on CPAN
(<http://search.cpan.org>).

This newsgroup is defunct. Ask general Perl questions in
comp.lang.perl.misc and questions about Perl modules in
comp.lang.perl.modules.

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----



Relevant Pages

  • SUMMARY: NTP jitter (not parsed)
    ... It seems the problem was related to the nagios ... latest perl distribution and recompiled nagios without ... > (check_ntp) to verify their NTP stuff is in good ... > hosts to shutdown very fast. ...
    (SunManagers)
  • Convert to NTP Timestamp
    ... I need to convert a date / time to NTP Timestamp, in HEX no less, and ... I have been searching for NTP Timestamp under Perl but have ...
    (comp.lang.perl)