File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes   How to create Time and Convert from EST to IST, UK and AUS Time  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "  How to create Time and Convert from EST to IST, UK and AUS Time  " Watch "  How to create Time and Convert from EST to IST, UK and AUS Time  " New topic
Author

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

Raghuveer Rawat
Ranch Hand

Joined: Apr 03, 2003
Posts: 102
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


Raghuveer Rawat<br />SCJP2
Tom Hill
Ranch Hand

Joined: Aug 24, 2003
Posts: 115
The JAva API has something on Time Zones - Under Util - I had a link but the computer crashed again....
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
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.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create Time and Convert from EST to IST, UK and AUS Time