my dog learned polymorphism*
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
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
Similar Threads
Should add a Virtualization or Cloud Computing category.
Naughty Google
String vs Object
still find naming policy incomprehensible (3d month)