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 argumentPROTOCOL
should define the protocol to use, eithertcp
orudp
. 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 argumentPROTOCOL
should define the protocol to use, eithertcp
orudp
. 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.