1*1031c584SApple OSS Distributions<h2>host_set_time</h2> 2*1031c584SApple OSS Distributions<hr> 3*1031c584SApple OSS Distributions<p> 4*1031c584SApple OSS Distributions<strong>Function</strong> - Sets the time. 5*1031c584SApple OSS Distributions<h3>SYNOPSIS</h3> 6*1031c584SApple OSS Distributions<pre> 7*1031c584SApple OSS Distributions<strong>#include< mach/mach_host.h></strong> 8*1031c584SApple OSS Distributions 9*1031c584SApple OSS Distributions<strong>kern_return_t host_set_time</strong> 10*1031c584SApple OSS Distributions <strong>(host_priv_t</strong> <var>host_priv</var>, 11*1031c584SApple OSS Distributions <strong>time_value_t</strong> <var>new_time</var><strong>);</strong> 12*1031c584SApple OSS Distributions</pre> 13*1031c584SApple OSS Distributions<h3>PARAMETERS</h3> 14*1031c584SApple OSS Distributions<dl> 15*1031c584SApple OSS Distributions<p> 16*1031c584SApple OSS Distributions<dt> <var>host_priv</var> 17*1031c584SApple OSS Distributions<dd> 18*1031c584SApple OSS Distributions[in host-control port] The control port for the host for which the time is to be set. 19*1031c584SApple OSS Distributions<p> 20*1031c584SApple OSS Distributions<dt> <var>new_time</var> 21*1031c584SApple OSS Distributions<dd> 22*1031c584SApple OSS Distributions[in structure] Time to be set. 23*1031c584SApple OSS Distributions</dl> 24*1031c584SApple OSS Distributions<h3>DESCRIPTION</h3> 25*1031c584SApple OSS Distributions<p> 26*1031c584SApple OSS DistributionsThe <strong>host_set_time</strong> function establishes the time on the specified host. 27*1031c584SApple OSS Distributions<h3>RETURN VALUES</h3> 28*1031c584SApple OSS Distributions<p> 29*1031c584SApple OSS DistributionsOnly generic errors apply. 30*1031c584SApple OSS Distributions<h3>RELATED INFORMATION</h3> 31*1031c584SApple OSS Distributions<p> 32*1031c584SApple OSS DistributionsFunctions: 33*1031c584SApple OSS Distributions<a href="host_adjust_time.html"><strong>host_adjust_time</strong></a>, 34*1031c584SApple OSS Distributions<a href="host_get_time.html"><strong>host_get_time</strong></a>. 35*1031c584SApple OSS Distributions<p> 36*1031c584SApple OSS DistributionsData Structures: 37*1031c584SApple OSS Distributionstime_value. 38