{
    "mode": "man",
    "parameter": "ntptime",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/ntptime/8/json",
    "generated": "2026-10-09T03:21:18Z",
    "synopsis": "ntptime [-chr] [-e esterror] [-f frequency] [-j]\n[-m maxerror] [-o offset] [-s status]\n[-t timeconstant]",
    "sections": {
        "NAME": {
            "content": "ntptime - read and set kernel time variables\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "ntptime [-chr] [-e esterror] [-f frequency] [-j]\n[-m maxerror] [-o offset] [-s status]\n[-t timeconstant]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Checks the kernel configuration for the NTP user interface syscalls ntpgettime() and\nntpadjtime(). If present, the current timekeeping data are displayed. If not, a\ndisappointment is displayed. See the kernel page file in the HTML documentation in\ndistribution for further details.\n\nA similar display can be obtained using the ntpq program and kerninfo command.\n\nThis program is useful only with kernels featuring the ntpadjtime(2) system call or local\nequivalent, as described in the A <kern.html> Kernel Model for Precision Timekeeping\"  page,\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-c",
                    "content": "Display the execution time of ntptime itself.\n\n-e esterror\nSpecify estimated error, in microseconds.\n\n-f frequency\nSpecify frequency offset, in parts per million.\n",
                    "flag": "-c"
                },
                {
                    "name": "-h",
                    "content": "Display help information.\n",
                    "flag": "-h"
                },
                {
                    "name": "-j",
                    "content": "Report in JSON rather than plain text.\n\n-m maxerror\nSpecify max possible errors, in microseconds.\n\n-o offset\nSpecify clock offset, in microseconds.\n",
                    "flag": "-j"
                },
                {
                    "name": "-r",
                    "content": "Display Unix and NTP times in raw format.\n\n-s status\nSpecify clock status. Better know what you are doing.\n\n-t timeconstant\nSpecify time constant, an integer in the range 0-10.\n",
                    "flag": "-r"
                },
                {
                    "name": "-V",
                    "content": "Print the version string and exit.\n",
                    "flag": "-V"
                }
            ]
        },
        "BUGS": {
            "content": "The format for modes and status in the JSON report is less than ideal.\n",
            "subsections": []
        },
        "EXIT STATUS": {
            "content": "One of the following exit values will be returned:\n\n0 (EXITSUCCESS)\nSuccessful program execution.\n\n1 (EXITFAILURE)\nThe operation failed or the command invocation was not valid.\n\nNTPsec                                       2024-04-01                                   NTPTIME(8)",
            "subsections": []
        }
    },
    "summary": "ntptime - read and set kernel time variables",
    "flags": [
        {
            "flag": "-c",
            "long": null,
            "arg": null,
            "description": "Display the execution time of ntptime itself. -e esterror Specify estimated error, in microseconds. -f frequency Specify frequency offset, in parts per million."
        },
        {
            "flag": "-h",
            "long": null,
            "arg": null,
            "description": "Display help information."
        },
        {
            "flag": "-j",
            "long": null,
            "arg": null,
            "description": "Report in JSON rather than plain text. -m maxerror Specify max possible errors, in microseconds. -o offset Specify clock offset, in microseconds."
        },
        {
            "flag": "-r",
            "long": null,
            "arg": null,
            "description": "Display Unix and NTP times in raw format. -s status Specify clock status. Better know what you are doing. -t timeconstant Specify time constant, an integer in the range 0-10."
        },
        {
            "flag": "-V",
            "long": null,
            "arg": null,
            "description": "Print the version string and exit."
        }
    ],
    "examples": [],
    "see_also": []
}