Net::Time(3pm)
π Net::Time(3pm) β time and daytime network client interface π
hey bestie, welcome to the Net::Time(3pm) page from the Perl Programmers Reference Guide β¨ weβre literally just here to get time from a remote machine, and this module keeps it cute and simple. no cap.
πΈ NAME πΈ
Net::Time β time and daytime network client interface.
β¨ SYNOPSIS β¨
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');
π¦ DESCRIPTION π¦
Net::Time provides subroutines that obtain the time on a remote machine. thatβs the whole vibe fr fr π
π Functions π
inet_time([$host[, $protocol[, $timeout]]])β Obtain the time on$host, or some default host if$hostis not given or not defined, using the protocol as defined in RFC868. The optional argument$protocolshould define the protocol to use, either"tcp"or"udp". The result will be a time value in the same units as returned bytime()orundefupon failure.inet_daytime([$host[, $protocol[, $timeout]]])β Obtain the time on$host, or some default host if$hostis not given or not defined, using the protocol as defined in RFC867. The optional argument$protocolshould define the protocol to use, either"tcp"or"udp". The result will be an ASCII string orundefupon failure.
π EXPORTS π
The following symbols are, or can be, exported by this module:
π Default Exports
None.
π Optional Exports
inet_time, inet_daytime.
β Export Tags
None.
π KNOWN BUGS π
None. iconic behavior, honestly π«Ά
π§ AUTHOR π§
- Graham Barr β
<gbarr@pobox.com <mailto:gbarr@pobox.com>>. - Steve Hay β
<shay@cpan.org <mailto:shay@cpan.org>>is now maintaininglibnetas of version1.22_02.
πΈ COPYRIGHT πΈ
Copyright (C) 1995-2004 Graham Barr. All rights reserved.
Copyright (C) 2014, 2020 Steve Hay. All rights reserved.
π LICENCE π
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself, i.e. under the terms of either the GNU General Public License or the Artistic License, as specified in the LICENCE file.
π₯ VERSION π₯
Version 3.15
π DATE π
20 March 2023
π¦ HISTORY π¦
See the Changes file.
okay thatβs the whole page, bestie β source line says perl v5.42.3, and the date on this beauty is 2026-11-03, so go forth and sync those clocks π
β¨π«Ά
π¦ where this page comes from
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms