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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
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: 18671
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://aspose.com/file-tools
 
subject: How to Handle DayLightSavings in Gregorian Calendar
 
Similar Threads
how to convert gregoriancalendar obj to sqldate?
How to add 15 days into current day?
Festivals and economy
Calendar conversion
Trouble understanding dates in Java