• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create Time and Convert from EST to IST, UK and AUS Time

 
Raghuveer Rawat
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all
I am creating a List box. That I want to fill with time starting from 00:00 to 23:45 in the interval of 15 minute like 00:00 then next 00:15 then 00:30 and so on. Is there any method in Java where I can add 15 minute in a time.
like if start time: 00:00
addTime(start time + 00:15) like this;
Then I would like to convert selected time from List box to IST, UK and AUS time. Is this time conversion possible in Java.
Any one who know How to do it.
Thanx in Advance
 
Tom Hill
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JAva API has something on Time Zones - Under Util - I had a link but the computer crashed again....
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any method in Java where I can add 15 minute in a time.
like if start time: 00:00 addTime(start time + 00:15) like this;

Take a look at the java.util.Calendar class documentation. You might find the roll, set, and/or get methods to be useful.
Then I would like to convert selected time from List box to IST, UK and AUS time. Is this time conversion possible in Java.
I don't have much experience adjusting the time zone with a Java app, but you might want to take a look at the TimZone class documentation.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic