Thread View: comp.lang.java
2 messages
2 total messages
Started by Dahl
Mon, 05 Aug 2002 15:20
java.util.TimerTask DST problem
Author: Dahl
Date: Mon, 05 Aug 2002 15:20
Date: Mon, 05 Aug 2002 15:20
18 lines
1761 bytes
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
Re: java.util.TimerTask DST problem
Author: Dahl
Date: Mon, 05 Aug 2002 15:25
Date: Mon, 05 Aug 2002 15:25
27 lines
1974 bytes
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 > > >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads