• Post Reply Bookmark Topic Watch Topic
  • New Topic

Day Light Saving Time .Code  RSS feed

 
ani jadhao
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am developing one application, which includes time handling of normal time and DST as well.
I am searching for a help(or code) , by which I get to know how to handle DST changes in java code.

My requirement :
Suppose in 2nd Nov 08 , GMT -8 , Central Daylight Time ends and CST starts , mean clocks will move backwards 1 hr i.e. from 2 am to 1 am. On my website I am showing time combo box to customer , where customer will select a time in HH:MM
Now if customer has selected 2:09am , which in turn gonna be 1:09 as DST ends and clocks will move backward 1 hr. So how to handle this DST change java code, so that when customer enters 2 am it will be saved as 1 am in database when its in DST,

Please help me. A code provision would be great help.
thanks in advance
Ani
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will find this useful.
http://snippets.dzone.com/posts/show/5288
Moving to more appropriate forum
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!