Tcl Library Source Code

Documentation
Login


[ Main Table Of Contents | Table Of Contents | Keyword Index | Categories | Modules | Applications ]

NAME

ntp_time - Tcl Time Service Client

Table Of Contents

SYNOPSIS

package require Tcl 8.5 9
package require time ?1.2.2?

::time::gettime ?options? timeserver ?port?
::time::getsntp ?options? timeserver ?port?
::time::configure ?options?
::time::cget name
::time::unixtime token
::time::status token
::time::error token
::time::reset token ?reason?
::time::wait token
::time::cleanup token

DESCRIPTION

This package implements a client for the RFC 868 TIME protocol (http://www.rfc-editor.org/rfc/rfc868.txt) and also a minimal client for the RFC 2030 Simple Network Time Protocol (http://www.rfc-editor.org/rfc/rfc2030.txt). RFC 868 returns the time in seconds since 1 January 1900 to either tcp or udp clients. RFC 2030 also gives this time but also provides a fractional part which is not used in this client.

COMMANDS

AUTHORS

Pat Thoyts

Bugs, Ideas, Feedback

This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category ntp of the Tcllib Trackers. Please also report any ideas for enhancements you may have for either package and/or documentation.

When proposing code changes, please provide unified diffs, i.e the output of diff -u.

Note further that attachments are strongly preferred over inlined patches. Attachments can be made by going to the Edit form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar.

SEE ALSO

ntp

KEYWORDS

NTP, SNTP, rfc 2030, rfc 868, time

CATEGORY

Networking

COPYRIGHT

Copyright © 2002, Pat Thoyts