🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java
Article #592

java.util.TimerTask DST problem

#592
From: Dahl
Date: Mon, 05 Aug 2002 15:20
18 lines
1761 bytes
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: <aim52n$2lvs$1@news.cybercity.dk>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!sn-xit-04!supernews.com!diablo.theplanet.net!newspeerenv1.svr.pol.co.uk!newsfeed.wirehub.nl!bnewspeer00.bru.ops.eu.uu.net!emea.uu.net!news.cybercity.dk!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f9a23,180186fa186d9925,start
X-Google-Attributes: gidf9a23,public
X-Google-Thread: f5d71,180186fa186d9925,start
X-Google-Attributes: gidf5d71,public
X-Google-ArrivalTime: 2002-08-05 08:24:45 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!sn-xit-04!supernews.com!diablo.theplanet.net!newspeerenv1.svr.pol.co.uk!newsfeed.wirehub.nl!bnewspeer00.bru.ops.eu.uu.net!emea.uu.net!news.cybercity.dk!not-for-mail
From: "Dahl" <NOSPAMjimmichr@hotmail.comSPAMNO>
Newsgroups: comp.lang.java,dk.edb.programmering.java
Subject: java.util.TimerTask DST problem
Date: Mon, 5 Aug 2002 17:20:01 +0200
Organization: Cybercity
Lines: 21
Message-ID: <aim52n$2lvs$1@news.cybercity.dk>
NNTP-Posting-Host: port154.ds1-khk.adsl.cybercity.dk
X-Trace: news.cybercity.dk 1028560792 88060 212.242.55.159 (5 Aug 2002 15:19:52 GMT)
X-Complaints-To: abuse@cybercity.dk
NNTP-Posting-Date: Mon, 5 Aug 2002 15:19:52 +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