From 5669c6748db6bed14147bd196a44f76c432154f1 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sun, 28 Oct 2018 02:58:22 +0000 Subject: [PATCH] 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. --- lib/libc/sys/gettimeofday.2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/libc/sys/gettimeofday.2 b/lib/libc/sys/gettimeofday.2 index fb64d570d849..f0a17dc01a3a 100644 --- a/lib/libc/sys/gettimeofday.2 +++ b/lib/libc/sys/gettimeofday.2 @@ -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