From owner-freebsd-questions Thu May 15 07:23:45 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA20387 for questions-outgoing; Thu, 15 May 1997 07:23:45 -0700 (PDT) Received: from mail.EUnet.hu (www.eunet.hu [193.225.28.100]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA20381 for ; Thu, 15 May 1997 07:23:42 -0700 (PDT) Received: by mail.EUnet.hu, id QAA18277; Thu, 15 May 1997 16:23:37 +0200 Received: (from zgabor@localhost) by CoDe.hu (8.7.5/8.7.3) id PAA00661; Thu, 15 May 1997 15:22:47 +0200 (MET DST) From: Zahemszky Gabor Message-Id: <199705151322.PAA00661@CoDe.hu> Subject: Re: time zone To: freebsd-questions@freebsd.org (FreeBSD questions) Date: Thu, 15 May 1997 15:22:47 +0200 (MET DST) Cc: rfinn@Houston-InterWeb.COM In-Reply-To: <3379FB1F.167E@Houston-InterWeb.COM> from "Richard J. Finn" at "May 14, 97 12:49:19 pm" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > How do I change the time zone in FreeBSD 2.2? On my SGI I simply > change a line in /etc/TIMEZONE to say TZ=CST6CDT. cp /usr/share/zoneinfo/foo/bar /etc/localtime foo = Europe/Africa/... bar = the city which is in the same time zone, as you If you use DOS/Win/... in your machine, too, ``touch /etc/wall_cmos_clock'' (So FBSD will know, that your machine's hardware clock use the local time, not GMT/UTC) Bye, Gabor -- #!/bin/ksh Z='21N16I25C25E30, 40M30E33E25T15U!' ;IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ ';set $Z;for i { [[ $i = ? ]]&&print $i&&break;[[ $i = ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i;print -n ${i#???};[[ "$j" = ??? ]]&&print -n "${j#??} "&&j=;typeset +i i;};IFS=' 0123456789 ';set $Z;X=;for i { [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;X="$X $i";typeset +l i;};print "$X"