DST offset calculation removed, it is wrong in any case.

This commit is contained in:
Andrey A. Chernov 1993-11-04 01:56:31 +00:00
parent 743eb022be
commit 03d24cbca4
5 changed files with 5 additions and 55 deletions

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
* $Id$
* $Id: clock.c,v 1.2 1993/10/16 13:45:44 rgrimes Exp $
*/
/*
@ -50,9 +50,6 @@
#include "i386/isa/rtc.h"
#include "i386/isa/timerreg.h"
#define DAYST 119
#define DAYEN 303
/* X-tals being what they are, it's nice to be able to fudge this one... */
/* Note, the name changed here from XTALSPEED to TIMER_FREQ rgrimes 4/26/93 */
#ifndef TIMER_FREQ
@ -186,13 +183,6 @@ inittodr(base)
sec += bcd(rtcin(RTC_MIN)) * 60; /* minutes */
sec += bcd(rtcin(RTC_SEC)); /* seconds */
/* XXX off by one? Need to calculate DST on SUNDAY */
/* Perhaps we should have the RTC hold GMT time to save */
/* us the bother of converting. */
yd = yd / (24*60*60);
if ((yd >= DAYST) && ( yd <= DAYEN)) {
sec -= 60*60;
}
sec += tz.tz_minuteswest * 60;
time.tv_sec = sec;

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
* $Id$
* $Id: clock.c,v 1.2 1993/10/16 13:45:44 rgrimes Exp $
*/
/*
@ -50,9 +50,6 @@
#include "i386/isa/rtc.h"
#include "i386/isa/timerreg.h"
#define DAYST 119
#define DAYEN 303
/* X-tals being what they are, it's nice to be able to fudge this one... */
/* Note, the name changed here from XTALSPEED to TIMER_FREQ rgrimes 4/26/93 */
#ifndef TIMER_FREQ
@ -186,13 +183,6 @@ inittodr(base)
sec += bcd(rtcin(RTC_MIN)) * 60; /* minutes */
sec += bcd(rtcin(RTC_SEC)); /* seconds */
/* XXX off by one? Need to calculate DST on SUNDAY */
/* Perhaps we should have the RTC hold GMT time to save */
/* us the bother of converting. */
yd = yd / (24*60*60);
if ((yd >= DAYST) && ( yd <= DAYEN)) {
sec -= 60*60;
}
sec += tz.tz_minuteswest * 60;
time.tv_sec = sec;

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
* $Id$
* $Id: clock.c,v 1.2 1993/10/16 13:45:44 rgrimes Exp $
*/
/*
@ -50,9 +50,6 @@
#include "i386/isa/rtc.h"
#include "i386/isa/timerreg.h"
#define DAYST 119
#define DAYEN 303
/* X-tals being what they are, it's nice to be able to fudge this one... */
/* Note, the name changed here from XTALSPEED to TIMER_FREQ rgrimes 4/26/93 */
#ifndef TIMER_FREQ
@ -186,13 +183,6 @@ inittodr(base)
sec += bcd(rtcin(RTC_MIN)) * 60; /* minutes */
sec += bcd(rtcin(RTC_SEC)); /* seconds */
/* XXX off by one? Need to calculate DST on SUNDAY */
/* Perhaps we should have the RTC hold GMT time to save */
/* us the bother of converting. */
yd = yd / (24*60*60);
if ((yd >= DAYST) && ( yd <= DAYEN)) {
sec -= 60*60;
}
sec += tz.tz_minuteswest * 60;
time.tv_sec = sec;

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
* $Id$
* $Id: clock.c,v 1.2 1993/10/16 13:45:44 rgrimes Exp $
*/
/*
@ -50,9 +50,6 @@
#include "i386/isa/rtc.h"
#include "i386/isa/timerreg.h"
#define DAYST 119
#define DAYEN 303
/* X-tals being what they are, it's nice to be able to fudge this one... */
/* Note, the name changed here from XTALSPEED to TIMER_FREQ rgrimes 4/26/93 */
#ifndef TIMER_FREQ
@ -186,13 +183,6 @@ inittodr(base)
sec += bcd(rtcin(RTC_MIN)) * 60; /* minutes */
sec += bcd(rtcin(RTC_SEC)); /* seconds */
/* XXX off by one? Need to calculate DST on SUNDAY */
/* Perhaps we should have the RTC hold GMT time to save */
/* us the bother of converting. */
yd = yd / (24*60*60);
if ((yd >= DAYST) && ( yd <= DAYEN)) {
sec -= 60*60;
}
sec += tz.tz_minuteswest * 60;
time.tv_sec = sec;

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
* $Id$
* $Id: clock.c,v 1.2 1993/10/16 13:45:44 rgrimes Exp $
*/
/*
@ -50,9 +50,6 @@
#include "i386/isa/rtc.h"
#include "i386/isa/timerreg.h"
#define DAYST 119
#define DAYEN 303
/* X-tals being what they are, it's nice to be able to fudge this one... */
/* Note, the name changed here from XTALSPEED to TIMER_FREQ rgrimes 4/26/93 */
#ifndef TIMER_FREQ
@ -186,13 +183,6 @@ inittodr(base)
sec += bcd(rtcin(RTC_MIN)) * 60; /* minutes */
sec += bcd(rtcin(RTC_SEC)); /* seconds */
/* XXX off by one? Need to calculate DST on SUNDAY */
/* Perhaps we should have the RTC hold GMT time to save */
/* us the bother of converting. */
yd = yd / (24*60*60);
if ((yd >= DAYST) && ( yd <= DAYEN)) {
sec -= 60*60;
}
sec += tz.tz_minuteswest * 60;
time.tv_sec = sec;