File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes How to Handle DayLightSavings in Gregorian Calendar Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "How to Handle DayLightSavings in Gregorian Calendar" Watch "How to Handle DayLightSavings in Gregorian Calendar" New topic
Author

How to Handle DayLightSavings in Gregorian Calendar

RAVI Kollepara
Greenhorn

Joined: Feb 05, 2004
Posts: 9
HI,
How to handle Day light savings in Gregorian Calendar. Do we need to set any properties or GC itself will take care the things. I am passing milliseconds and Timezone to the GC. I am passing "Asia/Almaty". But the updation is not proper.
Can any one give the suggestion.
Ravi
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18670
Generally, GregorianCalendar should take care of this for you, if it knows the correct Locale. But it's possible there's a bug. Can you provide more specific info about this? Showing some of the code? What's an example of a particular date/time with an incorrect result?


"I'm not back." - Bill Harding, Twister
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to Handle DayLightSavings in Gregorian Calendar
 
Similar Threads
how to convert gregoriancalendar obj to sqldate?
Trouble understanding dates in Java
Festivals and economy
How to add 15 days into current day?
Calendar conversion