<?xml version="1.0" encoding="UTF-8"?>
<!-- **************************************************************************
.... For copyright and licensing terms, see the file named COPYING.
.... **************************************************************************
.-->
<?xml-stylesheet href="docbook-xml.css" type="text/css"?>

<refentry id="taiclock">

<refmeta xmlns:xi="http://www.w3.org/2001/XInclude">
<refentrytitle>taiclock</refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo class="manual">user commands</refmiscinfo>
<refmiscinfo class="source">djbwares</refmiscinfo>
<xi:include href="version.xml" />
</refmeta>

<refnamediv>
<refname>taiclock</refname>
<refpurpose>check a system's clock through TAICLOCK</refpurpose>
</refnamediv>

<refsynopsisdiv>
<cmdsynopsis>
<command>taiclock</command>
<arg choice='req'><replaceable>host</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>

<refsection>
<title>Description</title>

<para>
<command>taiclock</command> connects to a TAICLOCK server on <replaceable>host</replaceable>.
It communicates using <ulink url="http://cr.yp.to/proto/taiclock.txt">the TAICLOCK protocol</ulink>.
<replaceable>host</replaceable> must be a dotted-decimal IPv4 address, or the value <code>0</code> which is translated to the IP address 127.0.0.1.
</para>

<para>
<command>taiclock</command> prints to its standard output a 16-byte TAI64NA adjustment that, when added to the local UNIX clock, will produce the TAI clock on <replaceable>host</replaceable>.
This is suitable for input to programs such as <citerefentry><refentrytitle>clockadd</refentrytitle><manvolnum>1</manvolnum></citerefentry> and <citerefentry><refentrytitle>clockview</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
</para>

<para>
<command>taiclock</command> limits the adjustment to 2 days.
</para>

</refsection>

<refsection>
<title>See also</title>
<variablelist>
<varlistentry>
<term><citerefentry><refentrytitle>sntpclock</refentrytitle><manvolnum>1</manvolnum></citerefentry></term>
<listitem><para>a similar program that uses the SNTP protocol</para></listitem>
</varlistentry>
<varlistentry>
<term><citerefentry><refentrytitle>taiclockd</refentrytitle><manvolnum>1</manvolnum></citerefentry></term>
<listitem><para>a server program that speaks the TAICLOCK protocol</para></listitem>
</varlistentry>
<varlistentry>
<term><citerefentry><refentrytitle>clockspeed</refentrytitle><manvolnum>1</manvolnum></citerefentry></term>
<listitem></listitem>
</varlistentry>
</variablelist>
</refsection>

<refsection>
<title>History</title>
<para>
<command>taiclock</command> was originally part of <personname><firstname>Daniel</firstname> <othername>J.</othername> <surname>Bernstein</surname></personname>'s clockspeed toolset in 1998.
</para>
</refsection>

<refsection>
<title>Author</title>
<para>
Original code and documentation by <personname><firstname>Daniel</firstname> <othername>J.</othername> <surname>Bernstein</surname></personname>.
Documentation modernizations by <personname><firstname>Jonathan</firstname> <surname>de Boyne Pollard</surname></personname>.
</para>
</refsection>

</refentry>
