• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

java.util.Date jdk 1.3 / 1.4

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I compile and run following code lines
<code>
Long l = new Long("781999200000");
java.util.Date d = new java.util.Date(l.longValue());
System.out.println(d.toString());
</code>


RESULT:
- JDK 1.3.x
Thu Oct 13 00:00:00 CEST 1994

- JDK 1.4.x
Wed Oct 12 23:00:00 CET 1994

Doing that with year 2005, the results JDK 1.3 and 1.4 are equal!


Does anybody know why JDK 1.3 has CEST and JDK 1.4 has CET?
 
Marshal
Posts: 24586
55
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because timezone handling was improved in 1.4. What you see there is a bug fix.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!