From owner-freebsd-questions@FreeBSD.ORG Fri Feb 2 15:42:31 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CD58C16A401 for ; Fri, 2 Feb 2007 15:42:31 +0000 (UTC) (envelope-from lists@webtent.net) Received: from esmtp.webtent.net (esmtp.webtent.net [208.38.145.5]) by mx1.freebsd.org (Postfix) with ESMTP id A1C1313C467 for ; Fri, 2 Feb 2007 15:42:31 +0000 (UTC) (envelope-from lists@webtent.net) Received: from localhost (localhost [127.0.0.1]) by esmtp.webtent.net (WebTent ESMTP Postfix Internet Mail Gateway) with ESMTP id 2FBA87F30F for ; Fri, 2 Feb 2007 10:42:31 -0500 (EST) X-Virus-Scanned: amavisd-new at webtent.net Received: from esmtp.webtent.net ([127.0.0.1]) by localhost (esmtp.webtent.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Y8CN0vn-Dm+I for ; Fri, 2 Feb 2007 10:42:20 -0500 (EST) Received: from columbus.webtent.org (ftp.webtent.org [70.110.70.43]) by esmtp.webtent.net (WebTent ESMTP Postfix Internet Mail Gateway) with ESMTP id 3225D7F302 for ; Fri, 2 Feb 2007 10:42:20 -0500 (EST) From: Robert Fitzpatrick To: FreeBSD Content-Type: text/plain Organization: WebTent Networking, Inc. Date: Fri, 02 Feb 2007 10:41:02 -0500 Message-Id: <1170430862.16189.8.camel@columbus.webtent.org> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit Subject: Determining daylight savings changes on BSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Feb 2007 15:42:31 -0000 I use the following command on our CentOS Linux servers to find out if the system is ready for the daylight savings changes coming up, but it does not seem to work the same on our FreeBSD 5.4 and 6.1 servers. How can I do this? I see the zdump command and the man page seems to suggest the same usage, but... esmtp# zdump -v US/Eastern | grep 2007 esmtp# zdump -v US/Eastern US/Eastern Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 20:45:52 1901 UTC isdst=0 gmtoff=0 US/Eastern Sat Dec 14 20:45:52 1901 UTC = Sat Dec 14 20:45:52 1901 UTC isdst=0 gmtoff=0 US/Eastern Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 03:14:07 2038 UTC isdst=0 gmtoff=0 US/Eastern Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 03:14:07 2038 UTC isdst=0 gmtoff=0 The Linux version spits out all years, hence the need for grep: [root@tpa-hosting ~]# zdump -v US/Eastern |grep 2007 US/Eastern Sun Mar 11 06:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 EST isdst=0 gmtoff=-18000 US/Eastern Sun Mar 11 07:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 EDT isdst=1 gmtoff=-14400 US/Eastern Sun Nov 4 05:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 EDT isdst=1 gmtoff=-14400 US/Eastern Sun Nov 4 06:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 EST isdst=0 gmtoff=-18000 -- Robert