{
    "mode": "perldoc",
    "parameter": "Net::Time",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ATime/json",
    "generated": "2026-06-03T05:24:03Z",
    "synopsis": "use Net::Time qw(inettime inetdaytime);\nprint inettime();          # use default host from Net::Config\nprint inettime('localhost');\nprint inettime('localhost', 'tcp');\nprint inetdaytime();       # use default host from Net::Config\nprint inetdaytime('localhost');\nprint inetdaytime('localhost', 'tcp');",
    "sections": {
        "NAME": {
            "content": "Net::Time - time and daytime network client interface\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Net::Time qw(inettime inetdaytime);\n\nprint inettime();          # use default host from Net::Config\nprint inettime('localhost');\nprint inettime('localhost', 'tcp');\n\nprint inetdaytime();       # use default host from Net::Config\nprint inetdaytime('localhost');\nprint inetdaytime('localhost', 'tcp');\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "\"Net::Time\" provides subroutines that obtain the time on a remote machine.\n",
            "subsections": [
                {
                    "name": "Functions",
                    "content": "\"inettime([$host[, $protocol[, $timeout]]])\"\nObtain the time on $host, or some default host if $host is not given or not defined, using\nthe protocol as defined in RFC868. The optional argument $protocol should define the\nprotocol to use, either \"tcp\" or \"udp\". The result will be a time value in the same units as\nreturned by time() or *undef* upon failure.\n\n\"inetdaytime([$host[, $protocol[, $timeout]]])\"\nObtain the time on $host, or some default host if $host is not given or not defined, using\nthe protocol as defined in RFC867. The optional argument $protocol should define the\nprotocol to use, either \"tcp\" or \"udp\". The result will be an ASCII string or *undef* upon\nfailure.\n"
                }
            ]
        },
        "EXPORTS": {
            "content": "The following symbols are, or can be, exported by this module:\n\nDefault Exports\n*None*.\n\nOptional Exports\n\"inettime\", \"inetdaytime\".\n\nExport Tags\n*None*.\n",
            "subsections": []
        },
        "KNOWN BUGS": {
            "content": "*None*.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Graham Barr <gbarr@pobox.com <mailto:gbarr@pobox.com>>.\n\nSteve Hay <shay@cpan.org <mailto:shay@cpan.org>> is now maintaining libnet as of version\n1.2202.\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright (C) 1995-2004 Graham Barr. All rights reserved.\n\nCopyright (C) 2014, 2020 Steve Hay. All rights reserved.\n",
            "subsections": []
        },
        "LICENCE": {
            "content": "This module is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself, i.e. under the terms of either the GNU General Public License or the Artistic\nLicense, as specified in the LICENCE file.\n",
            "subsections": []
        },
        "VERSION": {
            "content": "Version 3.13\n",
            "subsections": []
        },
        "DATE": {
            "content": "23 Dec 2020\n",
            "subsections": []
        },
        "HISTORY": {
            "content": "See the Changes file.\n",
            "subsections": []
        }
    },
    "summary": "Net::Time - time and daytime network client interface",
    "flags": [],
    "examples": [],
    "see_also": []
}