The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Phil Budne <>
Subject: [TUHS] Re: 3bsd tape image
Date: Wed, 30 Aug 2023 11:03:32 -0400	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

KenUnix wrote:
> Got a question. With 3BSD I have been unable to find where the time
> zone is set. I have looked at date.c, time.h and timebuf.h. In the
> meantime I fixed date.c to handle Y2K dates.

Same as v7, in /usr/src/sys/h/param.h (kernel rebuild required):

#define TIMEZONE (8*60)         /* Minutes westward from Greenwich */
#define DSTFLAG 1               /* Daylight Saving Time applies in this locality */

libc has the same limitations as v7:
/usr/src/libc/gen/timezone.c timezone function (used by date)
	knows only a subset of US zone names, plus GMT.
/usr/src/libc/gen/ctime.c has hardwired knowledge of DST change dates

      parent reply	other threads:[~2023-08-30 15:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-04  0:13 [TUHS] " Will Senn
2023-08-04  4:41 ` [TUHS] " Warner Losh
2023-08-04 17:17   ` Will Senn
2023-08-04 19:50     ` Clem Cole
2023-08-28 23:03 ` Phil Budne
2023-08-29 17:18   ` KenUnix
2023-08-30 11:11     ` KenUnix
2023-08-30 14:48       ` Clem Cole
2023-08-30 19:21         ` arnold
2023-08-30 20:06           ` Clem Cole
2023-08-30 20:07           ` Rich Salz
2023-08-30 20:34             ` KenUnix
2023-08-30 15:03       ` Phil Budne [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).