Note that the kenrel doesn't keep track daylight savings time, nor

timezone offset. These values are generally zero.

While one still theoreticall could set these values, that's almost
never done. Users wishing to have an offset between the time of day
clock hardware and UTC use adjkerntz(8) instead.

localtime(3) should be used to find these values for the current
timezone.
This commit is contained in:
Warner Losh 2018-10-28 02:58:22 +00:00
parent 33b5b3ef75
commit 5669c6748d

View File

@ -89,6 +89,11 @@ structure indicates the local time zone
and a flag that, if nonzero, indicates that
Daylight Saving time applies locally during
the appropriate part of the year.
The kernel generally does not track these values and they
are usually returned as zero.
Use
.Xr localtime 3
to find the offset for the currently active timezone.
.Pp
Only the super-user may set the time of day or time zone.
If the system is running at securelevel >= 2 (see