🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java
Article #593

Re: java.util.TimerTask DST problem

#593
From: Dahl
Date: Mon, 05 Aug 2002 15:25
27 lines
1974 bytes
Sorry about the danish in the beginning of the post. Please ignore the first
two lines (o:

"Dahl" <NOSPAMjimmichr@hotmail.comSPAMNO> wrote in message
news:aim52n$2lvs$1@news.cybercity.dk...
> HEjsa jeg har postet nedenst�ende sp�rgsm�l p� suns board, men ikke f�et
> nogen svar. Derfor pr�ver jeg her.
>
> I'm using java.util.Timer to execute a java.util.TimerTask at a fixed rate
> (5 min). It works fine until I simulate daylight saving time.
>
> When I increment the computers time by 1 hour, the TimerTask is executed
> many times right after each other (probably 60/5 times).
>
> When the time is set back one hour the task is executed after 65 minutes.
>
> I want the task to be executed every 5 minutes, even if the computer time
is
> changed due to DST.
>
> Is that possible?
>
> Thanks
> Dahl
>
>
>
Technical Details
Message-ID: <aim5di$2mo5$1@news.cybercity.dk>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!diablo.theplanet.net!colt.net!news.tele.dk!212.242.40.196!news.cybercity.dk!not-for-mail
References: <aim52n$2lvs$1@news.cybercity.dk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f9a23,180186fa186d9925
X-Google-Attributes: gidf9a23,public
X-Google-Thread: f5d71,180186fa186d9925
X-Google-Attributes: gidf5d71,public
X-Google-ArrivalTime: 2002-08-05 08:29:42 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!diablo.theplanet.net!colt.net!news.tele.dk!212.242.40.196!news.cybercity.dk!not-for-mail
From: "Dahl" <NOSPAMjimmichr@hotmail.comSPAMNO>
Newsgroups: comp.lang.java,dk.edb.programmering.java
Subject: Re: java.util.TimerTask DST problem
Date: Mon, 5 Aug 2002 17:25:42 +0200
Organization: Cybercity
Lines: 29
Message-ID: <aim5di$2mo5$1@news.cybercity.dk>
References: <aim52n$2lvs$1@news.cybercity.dk>
NNTP-Posting-Host: port154.ds1-khk.adsl.cybercity.dk
X-Trace: news.cybercity.dk 1028561145 88837 212.242.55.159 (5 Aug 2002 15:25:45 GMT)
X-Complaints-To: abuse@cybercity.dk
NNTP-Posting-Date: Mon, 5 Aug 2002 15:25:45 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000