1Net::Time(3)          User Contributed Perl Documentation         Net::Time(3)
2
3
4

NAME

6       Net::Time - time and daytime network client interface
7

SYNOPSIS

9           use Net::Time qw(inet_time inet_daytime);
10
11           print inet_time();          # use default host from Net::Config
12           print inet_time('localhost');
13           print inet_time('localhost', 'tcp');
14
15           print inet_daytime();       # use default host from Net::Config
16           print inet_daytime('localhost');
17           print inet_daytime('localhost', 'tcp');
18

DESCRIPTION

20       "Net::Time" provides subroutines that obtain the time on a remote
21       machine.
22
23       inet_time ( [HOST [, PROTOCOL [, TIMEOUT]]])
24           Obtain the time on "HOST", or some default host if "HOST" is not
25           given or not defined, using the protocol as defined in RFC868. The
26           optional argument "PROTOCOL" should define the protocol to use,
27           either "tcp" or "udp". The result will be a time value in the same
28           units as returned by time() or undef upon failure.
29
30       inet_daytime ( [HOST [, PROTOCOL [, TIMEOUT]]])
31           Obtain the time on "HOST", or some default host if "HOST" is not
32           given or not defined, using the protocol as defined in RFC867. The
33           optional argument "PROTOCOL" should define the protocol to use,
34           either "tcp" or "udp". The result will be an ASCII string or undef
35           upon failure.
36

AUTHOR

38       Graham Barr <gbarr@pobox.com>.
39
40       Steve Hay <shay@cpan.org> is now maintaining libnet as of version
41       1.22_02.
42
44       Copyright (C) 1995-2004 Graham Barr.  All rights reserved.
45
46       Copyright (C) 2014 Steve Hay.  All rights reserved.
47

LICENCE

49       This module is free software; you can redistribute it and/or modify it
50       under the same terms as Perl itself, i.e. under the terms of either the
51       GNU General Public License or the Artistic License, as specified in the
52       LICENCE file.
53
54
55
56perl v5.30.0                      2019-07-26                      Net::Time(3)
Impressum