From owner-freebsd-questions@FreeBSD.ORG Fri Feb 2 19:55:03 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 0501716A401 for ; Fri, 2 Feb 2007 19:55:02 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 9BF9913C481 for ; Fri, 2 Feb 2007 19:55:02 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id l12JrdBs098639; Fri, 2 Feb 2007 14:53:39 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id l12JrcXl098638; Fri, 2 Feb 2007 14:53:38 -0500 (EST) (envelope-from jerrymc) Date: Fri, 2 Feb 2007 14:53:38 -0500 From: Jerry McAllister To: Dan Nelson Message-ID: <20070202195338.GA98612@gizmo.acns.msu.edu> References: <1170430862.16189.8.camel@columbus.webtent.org> <20070202163637.GC44511@dan.emsphone.com> <20070202175710.GA98134@gizmo.acns.msu.edu> <20070202191814.GE44511@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070202191814.GE44511@dan.emsphone.com> User-Agent: Mutt/1.4.2.2i Cc: Robert Fitzpatrick , FreeBSD Subject: Re: 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 19:55:03 -0000 On Fri, Feb 02, 2007 at 01:18:14PM -0600, Dan Nelson wrote: > In the last episode (Feb 02), Jerry McAllister said: > > On Fri, Feb 02, 2007 at 10:36:37AM -0600, Dan Nelson wrote: > > > In the last episode (Feb 02), Robert Fitzpatrick said: > > > > I don't know how to read this. There was another command I saw a while > > back that gave similar looking information, but actually put out something > > for 2007. But, I can't find that mesage at the moment. > > > > > That means you need to update your zoneinfo tables. You can also use > > > the date command to see if you need updating: > > > > > > date -r 1173679260 > > > > > > If that prints "Mon Mar 12 02:01:00 EST 2007" you know you need to > > > update. > > > > Are you sure? I see the EST where mine says EDT, but mine gives the > > exact same date/time information as you show above outside of the EST. > > > > If I subtract out exactly one day (86400 seconds) I get: > > Sun Mar 11 01:01:00 EST 2007 which is just 59 minutes before > > the changeover. > > > > Then, if I add an hour (3600 seconds) I get: > > Sun Mar 11 03:01:00 EDT 2007 > > So you're saying that for dates on March 11 after 2AM, you get EDT, but > on March 12 it's back to EST? That doesn't make sense :) I get: No. For March 12 I get what I expect - EDT. > > $ TZ=America/New_York ; export TZ > $ date -r 1173592860 > Sun Mar 11 01:01:00 EST 2007 > $ date -r 1173596460 > Sun Mar 11 03:01:00 EDT 2007 > $ date -r 1173679260 > Mon Mar 12 02:01:00 EDT 2007 > $ Yes, that is exactly what I get and that seems right to me. I was just questioning the one first posted above that was: date -r 1173679260 resulting in: Mon Mar 12 02:01:00 EST 2007 That would be the EDT figures, except it is labeled EST But, if it was really EST (and thus need the zonefile updated) I thought it would say: Mon Mar 12 01:01:00 EST 2007 > > > So, I would expect the non-updated system to give: > > Mon Mar 12 01:01:00 EST 2007 > > Yes, that's what a system without the updated zoneinfo should print, I > think. OK. So the earlier post must have been a typo. ////jerry > > > Or is something else really messed up? > > My system seems to be giving the correct current date/time. > > -- > Dan Nelson > dnelson@allantgroup.com