Fargusson.Alan wrote:
How do you test today to see that the time change will occur at 2:00 AM on 
March 11?

man date

It can do it. I like the of
        date -f list




-----Original Message-----
From: Linux on 390 Port [mailto:[EMAIL PROTECTED] Behalf Of
John Summerfield
Sent: Thursday, March 01, 2007 2:39 PM
To: [email protected]
Subject: Re: Timezone change.


Little, Chris wrote:

-----Original Message-----
From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On
Behalf Of Fargusson.Alan
Sent: Thursday, March 01, 2007 11:36 AM
To: [email protected]
Subject: Timezone change.

 *
 * Note: When you run this program your timezone must be Pacific time.
 *       You might need to do "env TZ=PST8PDT dst".
 */

#include <stdio.h>
#include <time.h>

/* This is the exact time of the switch in 2007 for Pacific
time. */ #define BASE 1173607200
Or subtract 3600 for each zone east....

Whatever that means.


Wouldn't it be preferable to compare between local time and UTC for the
period in question? On Linux, it's a matter of using date -u:
[EMAIL PROTECTED]:~$ date -u;date
Thu Mar  1 22:38:00 UTC 2007
Fri Mar  2 07:38:00 WST 2007
[EMAIL PROTECTED]:~$

A shell script to report the difference would be pretty trivial, and not
require unlikely tools. I don't install a CD on everything. Do you?




--

Cheers
John

-- spambait
[EMAIL PROTECTED]  [EMAIL PROTECTED]

Please do not reply off-list

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390



--

Cheers
John

-- spambait
[EMAIL PROTECTED]  [EMAIL PROTECTED]

Please do not reply off-list

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to