Net-Time

Net::Time(3p) Perl Programmers Reference Guide Net::Time(3p)

Net-Time

Net::Time(3p) Perl Programmers Reference Guide Net::Time(3p) # Net::Time(3p) Perl Programmers Reference Guide Net::Time(3p) NNAAMMEE # Net::Time - time and daytime network client interface SSYYNNOOPPSSIISS # use Net::Time qw(inet_time inet_daytime); print inet_time(); # use default host from Net::Config print inet_time('localhost'); print inet_time('localhost', 'tcp'); print inet_daytime(); # use default host from Net::Config print inet_daytime('localhost'); print inet_daytime('localhost', 'tcp'); DDEESSCCRRIIPPTTIIOONN # "Net::Time" provides subroutines that obtain the time on a remote machine. FFuunnccttiioonnss “inet_time([$host[, $protocol[, $timeout]]])” Obtain the time on $host, or some default host if $host is not given or not defined, using the protocol as defined in RFC868. ...