Net::Time

NET::TIME(1)          User Contributed Perl Documentation         NET::TIME(1)



NAME
       Net::Time - time and daytime network client interface

SYNOPSIS
           use Net::Time qw(inet_time inet_daytime);

           print inet_time('localhost');
           print inet_time('localhost', 'tcp');

           print inet_daytime('localhost');
           print inet_daytime('localhost', 'tcp');


DESCRIPTION
       Net::Time provides subroutines that obtain the time on a remote
       machine.

       inet_time ( HOST [, PROTOCOL])
           Obtain the time on HOST using the protocol as defined in RFC868.
           The optional argument PROTOCOL should define the protocol to use,
           either tcp or udp. The result will be a unix-like time value or
           undef upon failure.

       inet_daytime ( HOST [, PROTOCOL])
           Obtain the time on HOST using the protocol as defined in RFC867.
           The optional argument PROTOCOL should define the protocol to use,
           either tcp or udp. The result will be an ASCII string or undef upon
           failure.

AUTHOR
       Graham Barr <Graham.Barr@tiuk.ti.com>

COPYRIGHT
       Copyright (c) 1995 Graham Barr. All rights reserved. This program is
       free software; you can redistribute it and/or modify it under the same
       terms as Perl itself.




3rd Berkeley Distribution    perl 5.003, patch 07                 NET::TIME(1)