File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes time zones Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "time zones" Watch "time zones" New topic

time zones

Chanpreet Julka
Ranch Hand

Joined: Nov 09, 2001
Posts: 40
I am writing a java aplication that has to convert standard time to GMT using time zone. I am not sure how to go about this, so some general advice would be helpfull. Thank you.
Lewin Chan
Ranch Hand

Joined: Oct 10, 2001
Posts: 214
I thought standard time was GMT...
Assuming that the time you're trying to convert has a timezone in it, and you are currently in the GMT timezone, then you could use the java.text.SimpleDateFormat object.

Or something like that

I have no java certifications. This makes me a bad programmer. Ignore my post.
Chanpreet Julka
Ranch Hand

Joined: Nov 09, 2001
Posts: 40
ill try it out. thanks
I agree. Here's the link:
subject: time zones
It's not a secret anymore!