Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Daylight saving 2004-10-31 03:00 EEST/EET?

Thread Tools

Daylight saving 2004-10-31 03:00 EEST/EET?

NoName NoName
Posts: n/a
example program:

How can I set "2004-10-31 03:00:00 EEST" calendar time?
I want to specify timestamps for my scheduler.

The following codesnippet does not understand EEST id.
It will fall to GMT setting.
cal = Calendar.getInstance(TimeZone.getTimeZone("EEST")) ;
cal.set(2004, 10-1, 31, 3, 0, 0);

I could use "Europe/Helsinki" but then cannot say whether
I mean 03:00 summertime or 03:00 wintertime.

It will understand "EET" id, but then I sort of skip
one hour if want to use 03:00 EEST and then 03:00 EET
(+1h to previous one).

I've added here a testprogram to see how it goes.

EU daylighttimesaving in StandardTime (UTC) rule:
2004-03-28 01:00:00 - 2004-10-31 01:00:00

Europe/Helsinki: EEST = "summer time" +1h forward
EET = "winter time" -1h backward
2004-10-31 02:00:00 EEST
2004-10-31 03:00:00 EEST !! summertime 03:00
2004-10-31 03:00:00 EET !! wintertime 03:00
2004-10-31 04:00:00 EET
2004-10-31 05:00:00 EET

example program:
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find about Daylight Saving time from the SW ? Pelle Beckman C++ 3 05-01-2005 09:26 PM
How to convert a given local time to UT considering Daylight Saving Times.... Filip Lyncker C++ 3 04-05-2005 02:52 PM
Daylight saving Amitabh Deepak C++ 4 09-17-2004 12:38 PM
Daylight Saving time: How to identify if a given time is invalid? Pranav Kantawala Java 5 02-25-2004 06:28 PM
Converting datetimes from/to UTC/GMT including daylight saving Michael Pfeifer C++ 4 12-17-2003 09:18 PM