[LBo] US Daylight Savings Time change

Chris F.A. Johnson cfajohnson at teksavvy.com
Tue Feb 27 22:09:38 CET 2007


On Tue, 27 Feb 2007, Terry Stettler wrote:

> When I typed: zdump -v /etc/localtime | grep 2007   into the console I got:
> -bash: zdump: command not found.  Yet man zdump does list the command.  What
> am I doing wrong?

    The command is usually in /usr/sbin, which is often not in the
    user's PATH (I always add both /sbin and /usr/sbin to my PATH).

    You can execute zdump with: /usr/sbin/zdump (you do not have to be
    root).

> On 2/27/07, Dave Lerner <7dvbyfk02 at sneakemail.com> wrote:
>>
>>  As you may know, the US government decided to mess around with DST, so
>>  effective this year, DST starts on the second Sunday in March (March 11,
>>  2007) instead of the first Sunday in April.
>>
>>  Here's a way of telling whether your linux installation knows about the
>>  change:
>>
>>  $ zdump -v /etc/localtime | grep 2007
>>
>>  /etc/localtime  Sun Mar 11 06:59:59 2007 UTC = Sun Mar 11 01:59:59 2007
>>  EST isdst=0 gmtoff=-18000
>>  /etc/localtime  Sun Mar 11 07:00:00 2007 UTC = Sun Mar 11 03:00:00 2007
>>  EDT isdst=1 gmtoff=-14400
>>  /etc/localtime  Sun Nov  4 05:59:59 2007 UTC = Sun Nov  4 01:59:59 2007
>>  EDT isdst=1 gmtoff=-14400
>>  /etc/localtime  Sun Nov  4 06:00:00 2007 UTC = Sun Nov  4 01:00:00 2007
>>  EST isdst=0 gmtoff=-18000
>>
>>  --
>>  QnA mailing list - To post: QnA at linuxbasics.org
>>  Site: http://LinuxBasics.org
>>  List-options: http://LinuxBasics.org/cgi-bin/mailman/listinfo/qna
>> 
>

-- 
    Chris F.A. Johnson                      <http://cfaj.freeshell.org>
    ===================================================================
    Author:
    Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)


More information about the QnA mailing list