Back to Darwin Xnu

Host Set Time

osfmk/man/host_set_time.html

latest673 B
Original Source

host_set_time


Function - Sets the time.

SYNOPSIS

**#include&lt mach/mach\_host.h&gt**** kern\_return\_t host\_set\_time****(host\_priv\_t**host\_priv, **time\_value\_t** new\_time**);**

PARAMETERS

host_priv[in host-control port] The control port for the host for which the time is to be set.

new_time[in structure] Time to be set.

DESCRIPTION

The host_set_time function establishes the time on the specified host.

RETURN VALUES

Only generic errors apply.

Functions: host_adjust_time, host_get_time.

Data Structures: time_value.