1Net::Time(3pm)         Perl Programmers Reference Guide         Net::Time(3pm)
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
41       Copyright (c) 1995-2004 Graham Barr. All rights reserved.  This program
42       is free software; you can redistribute it and/or modify it under the
43       same terms as Perl itself.
44
45
46
47perl v5.12.4                      2011-06-01                    Net::Time(3pm)
Impressum